From b46c48f2feca097387a7caa0e1658e2f7cfaf292 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Fri, 17 Jun 2022 11:29:47 +0200 Subject: [PATCH] Reproduce --single-process crash when combined with proxy auto-config Use in conjunction with proxy auto-configuration (PAC) in Windows in order to reproduce the startup crash when running in debug mode. Change-Id: I443b67b86fa235422178d41c83663c9d256b5f1f --- .../webenginequick/quicknanobrowser/ApplicationRoot.qml | 4 ---- .../webenginequick/quicknanobrowser/BrowserWindow.qml | 9 ++------- examples/webenginequick/quicknanobrowser/main.cpp | 2 ++ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/examples/webenginequick/quicknanobrowser/ApplicationRoot.qml b/examples/webenginequick/quicknanobrowser/ApplicationRoot.qml index cd40a7fdb..610d4d1ef 100644 --- a/examples/webenginequick/quicknanobrowser/ApplicationRoot.qml +++ b/examples/webenginequick/quicknanobrowser/ApplicationRoot.qml @@ -59,10 +59,6 @@ QtObject { offTheRecord: false } - property QtObject otrProfile: WebEngineProfile { - offTheRecord: true - } - property Component browserWindowComponent: BrowserWindow { applicationRoot: root } diff --git a/examples/webenginequick/quicknanobrowser/BrowserWindow.qml b/examples/webenginequick/quicknanobrowser/BrowserWindow.qml index 0da1bc043..a831016cc 100644 --- a/examples/webenginequick/quicknanobrowser/BrowserWindow.qml +++ b/examples/webenginequick/quicknanobrowser/BrowserWindow.qml @@ -362,13 +362,8 @@ ApplicationWindow { MenuItem { id: offTheRecordEnabled text: "Off The Record" - checkable: true - checked: currentWebView && currentWebView.profile === otrProfile - onToggled: function(checked) { - if (currentWebView) { - currentWebView.profile = checked ? otrProfile : defaultProfile; - } - } + checkable: false + checked: false } MenuItem { id: httpDiskCacheEnabled diff --git a/examples/webenginequick/quicknanobrowser/main.cpp b/examples/webenginequick/quicknanobrowser/main.cpp index f21b0362c..61f2097a7 100644 --- a/examples/webenginequick/quicknanobrowser/main.cpp +++ b/examples/webenginequick/quicknanobrowser/main.cpp @@ -72,6 +72,8 @@ static QUrl startupUrl() int main(int argc, char **argv) { + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--single-process"); + QCoreApplication::setOrganizationName("QtExamples"); QtWebEngineQuick::initialize(); -- 2.26.2.windows.1