diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-05-06 09:24:31 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-05-11 13:12:46 +0000 |
commit | 72d76568fe90b072c0199391b5b5b47c3052e79f (patch) | |
tree | 8c2d023ae2ef3d6eb52f77c6c8f02de3abc527bf | |
parent | 357dcbf7d9510b5282a18e8211e2494f353b4e5e (diff) | |
download | qtwebengine-chromium-72d76568fe90b072c0199391b5b5b47c3052e79f.tar.gz |
FIXUP: Disable alternate window station of Windows sandbox
This is necessary after upstream change:
5129a5e714d67 Win: Initialize alternate desktop earlier.
https://chromium-review.googlesource.com/c/chromium/src/+/2656961
Change-Id: Icdca68666b32c84a6335ca7f044a77cb6061cf69
Fixes: QTBUG-102738
Pick-to: 94-based 90-based
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/sandbox/policy/sandbox.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/sandbox/policy/sandbox.cc b/chromium/sandbox/policy/sandbox.cc index 3b31605f49f..f109afa3a9b 100644 --- a/chromium/sandbox/policy/sandbox.cc +++ b/chromium/sandbox/policy/sandbox.cc @@ -57,7 +57,12 @@ bool Sandbox::Initialize(sandbox::mojom::Sandbox sandbox_type, // process because it will initialize the sandbox broker, which requires // the process to swap its window station. During this time all the UI // will be broken. This has to run before threads and windows are created. +#ifdef TOOLKIT_QT + // Disable alternate window station due to QTBUG-83300 + ResultCode result = policy->CreateAlternateDesktop(false); +#else ResultCode result = policy->CreateAlternateDesktop(true); +#endif CHECK(SBOX_ERROR_FAILED_TO_SWITCH_BACK_WINSTATION != result); } return true; |