summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace Q_OS_WIN guards with BUILDFLAG(IS_WIN)Peter Varga2023-03-161-7/+10
| | | | | | | | | | | | vulkan_implementation_qt.cpp doesn't include any Qt header and Q_OS_WIN remains undefined on Windows. Also include vulkan/vulkan.h for the WIN32 vulkan macros. Change-Id: I66b9f134194526c055309bb72bd3a452e2b9a2b2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 7b11561d8f63d521d4bc0e6fb005182cdfe93f82) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2023-03-121-0/+0
| | | | | | | | | | | | | | | Submodule src/3rdparty 0dc29a1e..fdcde546: * Revert "DrawingBuffer: Remove RGB emulation support" * Fixup: "Revert "Remove unused ProduceRGBEmulationGLTexture calls with its usage."" * FIXUP: Workaround debug iterator issues with MSVC Fixes: QTBUG-111585 Fixes: QTBUG-111784 Change-Id: I2493eb6f0defdba6460128e15b1f810398bab3ca Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 8fd4e9fc616c71d84ab578808e89bbb5dd28c836) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix wrong WebEngineCertificateError property nameAndreas Eliasson2023-03-112-3/+3
| | | | | | | | | | The correct property name should be type, not error. Fixes: QTBUG-111574 Change-Id: I276823f5bc664a99153b31e5bba36ae34608a9b9 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 1d60666419773ee91638c5666650a4fb62f22468) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix initialization of QWebEngineDownloadRequest::totalBytes for WidgetsPeter Varga2023-03-075-31/+28
| | | | | | | | | | | | | QQuickWebEngineProfile already initializes totalBytes. Also clean up QWebEngineDownloadRequestPrivate and fix typo in documentation. Fixes: QTBUG-104869 Change-Id: I8c4b79c076ddc63180960e22a9488b45ff6c4402 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 496647f7647571ca3cdf81b10ba418de0f06f34d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2023-03-041-0/+0
| | | | | | | | | | | Submodule src/3rdparty bdb22d05..0dc29a1e: * Revert "Remove unused ProduceRGBEmulationGLTexture calls with its usage." Fixes: QTBUG-111585 Change-Id: I2dabfbc1f79e4d61ff42273b001808c7237ab8cf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 28a2cfe4116f7218b33df811b79536c0593ddda6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Pass system library paths to cmakeMartin Negyokru2023-03-012-3/+3
| | | | | | | | | | | Generate a new rsp file for each cmake target containing '-L' flags and pass them to cmake. Pick-to: dev Task-number: QTBUG-105053 Task-number: QTBUG-111225 Change-Id: Ib25c009795b776bc5f0f6e07fb89b932ef30b484 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix cross-compilation with system ffmpegMartin Negyokru2023-03-011-1/+1
| | | | | | | | | We were using QT_FEATURE_system_ffmpeg which is not defined. Use QT_FEATURE_webengine_system_ffmpeg instead. Pick-to: dev Change-Id: Ic7b6d4ea91dc8b29f344118c28932fa80a7a8d10 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update ChromiumMichael Brüning2023-03-011-0/+0
| | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 10e54a07..bdb22d05: * [Backport] CVE-2023-0931: Use after free in Video (2/2) * [Backport] CVE-2023-0931: Use after free in Video (1/2) * [Backport] Security bug 1414224 * [Backport] CVE-2023-0928: Use after free in SwiftShader * [Backport] CVE-2023-0933: Integer overflow in PDF * [Backport] CVE-2023-0932: Use after free in WebRTC * [Backport] CVE-2023-0929: Use after free in Vulkan * [Backport] CVE-2023-0941: Use after free in Prompts * Add checksum to mailbox name in Release build too Task-number: QTBUG-111363 Change-Id: I54ca00ef411d21eb02780f1096117d762472d5d1 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 52728ddf8840c1e786da6fc8d8a8918834d79a32) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix filesystem request qml namespaceMichal Klocek2023-03-011-1/+9
| | | | | | | | | | Unfortunately in 3494efe5d440 we register request incorrectly which does not work as intended with qml. Fix it and add namespace to qml registry. Change-Id: I6965dd0a9b65021cd9c290aaecef9fb9fd82735a Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit f6c5dea639ee5f84af627df3b127d8133f4c4ac6)
* Fix file url in webengine filesystem requestMichal Klocek2023-03-011-1/+1
| | | | | | | | | We should return filesystem url, not just string converted to url. Change-Id: I883e4dd092396e918115cb609ed040c92a871737 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 576f0ea80537ba257f9fa78dcd3b52e6c9ee7272)
* Fix use after free in permission grantMichal Klocek2023-03-014-2/+29
| | | | | | | | | | The permission grant can become dangling pointer in origin state struct, fix it. Change-Id: If16b604a8c3c05d09ea923251dabcae73192dd7d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 16d3701b1dd4887cc4affb0447ee3b9b7729e7fb) Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Define an enum for FPDF rotation int valuesAxel Spoerl2023-02-242-16/+26
| | | | | | | | | | | | | FPDF uses int values defined in fpdfview.h:955ff, representing page rotation. Respecting coding style, this patch adds an enum in QPdfDocumentPrivate to introduce meaningful names instead of int values. Change-Id: I54cefe336de3670026cfc4d7f4436e5898e43b54 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 21c11e817478f440e32a82f20b964b285339e939) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add Origin Trial Policy supportPeter Varga2023-02-233-0/+27
| | | | | | | | | | | | | | | | | | This makes SharedArrayBuffer available for earth.google.com For enabling certain experimental feature for a web page, the page provides a token in a meta tag for the browser. The token is requested by the web developer and generated by Google. The verification of the token happens without any server calls or network access. See, * http://googlechrome.github.io/OriginTrials/developer-guide.html#23-how-are-tokens-verified * blink::TrialToken::Parse() and blink::TrialTokenValidator implementation (//third_party/blink/common/origin_trials) Change-Id: I6f102af8efcd12b6b267dceb9de59d685fd22f9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 595e8b6a73e69c57ac7f331f0610f4b8e2c448ff) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2023-02-232-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 7e5ee9d6..10e54a07: * FIXUP: Fixes for building with MSVC * Fixup for [Backport] CVE-2023-0705: Integer overflow in Core (2/2) * Fix android on mac support * Add android config support * Merge branch 'upstream-master' into HEAD * Add android required resources for chromium repo * [Backport] CVE-2023-0696: Type Confusion in V8 * [Backport] Security bug 829317 (2/2) * [Backport] Security bug 829317 (1/2) * [Backport] CVE-2023-0705: Integer overflow in Core (2/2) * [Backport] CVE-2023-0705: Integer overflow in Core (1/2) * [Backport] Security bug 1400809 * [Backport] Security bug 1325096 * [Backport] CVE-2023-0701: Heap buffer overflow in WebUI. * [Backport] CVE-2023-0702: Type Confusion in Data Transfer * [Backport] CVE-2023-0699: Use after free in GPU (2/2) * [Backport] CVE-2023-0699: Use after free in GPU (1/2) * [Backport] CVE-2023-0703: Type Confusion in DevTools * [Backport] CVE-2023-0698: Out of bounds read in WebRTC (2/2) * [Backport] CVE-2023-0698: Out of bounds read in WebRTC (1/2) * Merge branch 'upstream-master' into 108-based * BASELINE: Update Chromium to 108.0.5359.220 Task-number: QTBUG-111363 Task-number: QTBUG-83459 Change-Id: Id67893339f68e382e10ae10bbfddeffc8b60ae88 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 53162b8a1c2b02bb572e0e7d93c9d1493c74287e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Refactor devtools frontendMartin Negyokru2023-02-234-703/+130
| | | | | | | | | Use chrome's UIBindings and message dispatcher. Change-Id: I580b551153de8a0d34b70199c17a50df67237e73 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 73acb3b3e8e74b087409f856746c3454c717dfa7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix uniqueId() for accessible eventsPeter Varga2023-02-222-0/+16
| | | | | | | | | | | | | | | | | | | QAccessibleEvent::uniqueId() expects child index to be set if the event object is set. If the index is not explicitly set the event interprets the unique ID as a child index what is invalid. This change fixes warnings like: qt.accessibility.core: Invalid child in QAccessibleEvent: QObject(0x1cc9ec25d60, name = "search") child: -2147483017 In case of an invalid child, uniqueId() returns 0 and this causes assert on macOS. Task-number: QTBUG-105988 Change-Id: If068ab648226284bb3bd6502fc0381f4229d19e2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 442e347f592d389ff664f3b1cae466c3e2506d78) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add missing foregin type for QWebEngineFileSystemAccessRequestMichal Klocek2023-02-211-0/+10
| | | | | | | | | Add foregin type so it can be use within qml. Change-Id: I8104874f2e898b170c8091a8fdeca450e59ae2a6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit cc30b803650102b19f0748b07d82f2929b53ebf2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Force to disable IPC loggingPeter Varga2023-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | It is enabled by default in Chromium for debug build. See //ipc/features.gni. Disable it for debug build too because it adds and extra SetIPCLoggingEnabled mojo message (see //content/common/child_process.mojom) and it results different mojo message ids for the debug and release binaries. This is undesirable when setting QTWEBENGINEPROCESS_PATH environment variable to use release QtWebEngineProcess with debug browser process or the other way around. The messages and the corresponding ids can be listed by executing the following command in the QtWebEngine build directory: find . -name "*-message-ids.h" | xargs grep -h "constexpr uint32_t" Task-number: QTBUG-110504 Change-Id: I80f24117ae20d02fb53ea482d04bea7a9dcb38c1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 114c6d0543e1ebe4ec12693b0d462ec05037e3a4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove extra quotes from CHROMIUM_VERSIONMartin Negyokru2023-02-161-1/+1
| | | | | | | | | | | This change unifies version macros and fixes invalid 'ContentBrowserClientQt::getUserAgent' after 1f4fdb06b13f0a9400f16313aad9296f019d2fc9 Change-Id: I9df963a45f6d66c6b30c23d603afb335b6f25cce Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit c53fd87cf50e51e338d2f8e54f494a8dbab8d712) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update Chromium security backports version informationMichael Brüning2023-02-151-1/+1
| | | | | | | Change-Id: If905393d73892256175ac5059503a9fc4a6a32f6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit b385e76b1fc60ce1f48d2b805a4a2d2a2b23d1bd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumAllan Sandfeld Jensen2023-02-151-0/+0
| | | | | | | | | | | | | | | | | Submodule src/3rdparty 331447653..7e5ee9d6a: > Fix vaapi support for QtWebEngine > FIXUP: Qt GN integration > [Revert] Remove dependency on libgbm > [Revert] Avoid using libdrm > FIXUP: Fix building with system ffmpeg > FIXUP: Fix building with system ffmpeg 4.4 or 5.1 > FIXUP: Fixes for jumbo build > FIXUP: Stop using C++20 initialization Change-Id: I98fed6e23e55133946dcf3673ef74039d270f263 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit c727f23b7bc277a182258803bea9e6c0ce2462eb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Set enable_vulkan=false for Chromium build if Vulkan is disabledPeter Varga2023-02-141-0/+4
| | | | | | | Change-Id: I98bce5dcf7f2c35b5ed3382be2e49340b134e355 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c008999211d1afa028cc3ab83b9418e4bffa8313) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumAllan Sandfeld Jensen2023-02-141-0/+0
| | | | | | | | | | | | Submodule src/3rdparty 8c839a298..331447653: > FIXUP: Adapt DevToolsUIBindings for WebEngine > FIXUP: Remove linking with libatomic > Fix build with enable_vulkan=false > FIXUP: Workaround debug iterator issues with MSVC Change-Id: I95d7bc540aeb4f62354e0a547f3fe9dc08b72051 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 901a6b98b1c2eaf79a0b0e4082ac0703e28794e2)
* Add option to build using system OpenJPEG 2Allan Sandfeld Jensen2023-02-142-1/+5
| | | | | | | | | | | Adds a check on Unix system for the presence of a system OpenJPEG 2 library and builds against it if present. Task-number: QTBUG-63889 Change-Id: I9fd90c96d733154b912acf4e9c7f06c17a39b244 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 34337238826471f2229453320645d3124d8a51e5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix external ozoneAllan Sandfeld Jensen2023-02-121-0/+14
| | | | | | | | | Writing it like in chromium saving us a patch there Change-Id: I98a769844871b6ed661519380f24068c1c0c25d9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit 5358dd0dca2f19e3b4d20fa98878c9d0038cf4ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Retire the qt_parse_all_argumentsAmir Masoud Abdol2023-02-106-13/+26
| | | | | | | | | | | | | To do so, we need to deal with the macros a bit differently, so here, I replaced the macros with available utility functions, and added one for the QTWEBENGINEPROCESS_NAME. Fixes: QTBUG-110873 Task-number: QTBUG-99238 Change-Id: I29b41ffb8059511d2d93bfc01d40308aedaa8ad4 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 1f4fdb06b13f0a9400f16313aad9296f019d2fc9) Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Move out GetInProcessGpuShareGroup form content browser clientMichal Klocek2023-02-034-26/+17
| | | | | | | | | | | | | | | | | Keeping the GetInProcessGpuShareGroup in content browser client creates dependency from gpu_child_thread to content browser, however gn build tree asserts when content/public/gpu depends on content/public/browser as it breaks intended components dependency. This worked so far as required headers in content browser client got generated on time despite of missing dependency. Fix the dependency tree and move the problematic function into the content gpu client. Change-Id: Iedcbc8c3c7d1754d1937e6b2c2a470c0e489a597 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 9739cc64c90e3852216f38fb15f04ba4477d0c39) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichal Klocek2023-02-031-0/+0
| | | | | | | | | | | | | | | | | | | | | Pulls in following patches: * a99ba129737 [Backport] CVE-2023-0474: Use after free in GuestView * 05ea098dd34 [Backport] CVE-2023-0473: Type Confusion in ServiceWorker API * 163ca80e46f [Backport] CVE-2023-0472: Use after free in WebRTC * c033e30b908 [Backport] CVE-2023-0471: Use after free in WebTransport * 23b96f58c5e [Backport] Security bug 1406115 * c67083d788a [Backport] Security bug 1404811 * 1c46e13f96b Adapt DevToolsUIBindings for WebEngine * 9e1092cefd7 FIXUP: Fixes for jumbo build * f088c97075a Do not override getaddrinfo in libc_interceptor * be1ee6225d0 Drop dependency on content/public/browser in content gpu Change-Id: I0af3a1f12a315fc4756d9463d3837de87db888b0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit f385f8107667d2c59358b32b0251bad07b5fce9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Replace QtWebEngineCore::initialize() with QtWebEngineQuick::initialize() in ↵Peter Varga2023-02-033-5/+6
| | | | | | | | | | | error messages Also fix typos. Change-Id: I6e505102dc2241e4e00b181d0c4a097af4a40d35 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a4cebe374b59f2e30074deac625529820d475130) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add InputEventObserver to child framesMartin Negyokru2023-02-014-39/+46
| | | | | | | | | | | | | | | | | | | | | RenderWidgetHostViewChildFrame does not Ack mouse wheel events. RenderWidgetHostViewQt::handleWheelEvent expects Ack on every event. Origin-Agent-Cluster is a HTTP response header that instructs the browser to prevent synchronous scripting between same-site cross-origin pages. Chromium also uses this header as a hint that an origin should get its own separate resources, such as a dedicated process. That's where child frames are created. This feature is implemented in chromium 88. Add observer to child frames that responds to wheel events. Add test for wheel/scroll events on child frames. Fixes: QTBUG-109348 Change-Id: I20439a9068c5c2f8416a350891a6cf8830e1a5d6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit e70f53df4d189fa832e3cd6bb729a00c5b6d52ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Yield fatal error for empty command-line argumentsPeter Varga2023-01-301-9/+6
| | | | | | | | | | | | | Resolving TODO, the corresponding Active Qt issue has been fixed. This amends commit 614d6639b875f53b21eaabd2d5928b84b59af707 Change-Id: If0144af83cd1d512b151ce82a38e47b4811fbfa8 Taks-number: QTBUG-110157 Taks-number: QTBUG-110158 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit c38b9e66e01b7f50948c20f32823f5cbff929ac6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve error handling of argument parsingPeter Varga2023-01-201-27/+35
| | | | | | | | | | | | | | | | | | | As a corner case, QCoreApplication::arguments() might be empty. For example, the embedder sets argc=0. It is invalid but doesn't crash or warn. base::CommandLine expects program name to be set and Chromium code might use it. It is not possible to set program name if argv is not passed to QCoreApplication. This change does not handle this corner case but detects it, and warns the user to not expect proper behavior. Task-number: QTBUG-110157 Change-Id: Ibf14b11bbf8b8c72d8a1d8419377a25b311b9ebe Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 614d6639b875f53b21eaabd2d5928b84b59af707) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix opening files with File System Access APISzabolcs David2023-01-202-4/+61
| | | | | | | | | | | | | | | | | | Chrome interprets accepting file picker dialog as a user consent and grants access permission to the selected files automatically. We have to do the same since we don't get any permission request in this case anymore. This issue did not affect directory picker and file saver modes. Also add AncestorHasActivePermission() check, it seems to be effective to not request permission again for the same file if the parent dir was already pulled in by this API. Change-Id: Id73d8fc6e9bd518692362133f3dafa472f0e97a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 01728421d641ffac98a85b408167db478b253458) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix warning and minor clean-upPeter Varga2023-01-191-1/+0
| | | | | | | | | | | - Fix typo in link - Qt Location is no longer linked in Qt WebEngine Features - Replace Qt Location with Qt Positioning module Change-Id: Ia736fee8f0775fd6067c6f1e7a670b3bd7d8acb5 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit e8137c729afbbb5c1549cad863ecbfd8c95b94a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Disable WebEngineContext dump by defaultPeter Varga2023-01-192-19/+29
| | | | | | | | | | | | | | Keep it enabled for simplebrowser and quicknanobrowser examples. Also add documentation how to enable it. [ChangeLog][WebEngineCore] Disabled WebEngineContext dump by default. Fixes: QTBUG-109040 Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 876f11854eddbe95132692b3b0853470563ff54a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix deprecation of Quota Permission Request APIPeter Varga2023-01-193-4/+7
| | | | | | | | | | | | | | Add reason string and version for deprecation. Also mark the constructor of QWebEngineQuotaRequest class deprecated. Amends 8fd7140082e3a752ca80882a29128ffc12d12fa4 Task-number: QTBUG-109580 Task-number: QTBUG-56354 Change-Id: Ifa15bb5eaccabd62acbeb05df071c4bdc9584c95 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 474426afa4cf52e057d321498f78bb0fbd626022) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Clean up accessibilityPeter Varga2023-01-1812-79/+70
| | | | | | | | | Build less when disabled. Change-Id: I196073ce859216a041b3d13ea585fca749a52700 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit de98b250e8e24f590988ed510f28983c85dcbdc4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove blink::WebSecurityOrigin leftoverPeter Varga2023-01-181-4/+0
| | | | | | | | | Leftover from Chromium 80 adaptations. Change-Id: I644142e6552e6a45b0a5cc2a501b20dd951c9cea Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c879e7679db0d1359f3ee5cbc8b850efbbe164eb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Log raw abnormal exit codesAllan Sandfeld Jensen2023-01-181-1/+2
| | | | | | | | | We lose details in the translation to Qt exit codes. Change-Id: I890242ac78bf82cc6ef38d3aa8c6a25677714071 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit bef75eeae176602a7a827388e089c46a0a4c9a07) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Avoid -1 render-termination codesAllan Sandfeld Jensen2023-01-181-0/+5
| | | | | | | | | Cover all the possible values in the translation. Change-Id: Id5db3cceddd62f9f7c77ee8a2017e9c920f8b7d5 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 67f414d4b931e995605cace60abc475061edf273) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichal Klocek2023-01-171-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Pulls in following patches: * 0b138dc30d0 FIXUP: Avoid using libdrm * 006ab12dc35 [Backport] CVE-2023-0138: Heap buffer overflow in libphonenumber * c49e5e48ff6 [Backport] CVE-2023-0141: Insufficient policy enforcement in CORS (2/2) * 4f89844cf42 [Backport] CVE-2023-0141: Insufficient policy enforcement in CORS (1/2) * 63077f1575b [Backport] CVE-2023-0131: Inappropriate implementation in iframe Sandbox * ee6f7906f9b [Backport] CVE-2023-0132: Inappropriate implementation in Permission prompts * 1f19a05eaa8 [Backport] CVE-2023-0129: Heap buffer overflow in Network Service * d4b983b72ad FIXUP: Remove VkDevice parameter from SurfaceFactoryOzone::CreateNativePixmap() Fixes: QTBUG-110272 Pick-to: dev Change-Id: I9fe5bd6c3643342b6f1b0f8a6c5daaec65e76944 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Quick: Fix file selection modes in the default UI delegateSzabolcs David2023-01-164-4/+57
| | | | | | | | | | | Our implementation of QML file picker was outdated. Now directory picker is a separate type of dialog and other file selection modes are set in FileDialog.fileMode property. Change-Id: Icc62369539c56666e596e5ee6f1b3068a43acd81 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 35d4b0b1d1c723e32d589b3dfddfe96eaa8e5568) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix crash in Quick when File System Access dialog acceptedSzabolcs David2023-01-161-4/+4
| | | | | | | | | | | | The fileDialogListener was manually released (to avoid its fullscreen blocking habit), but it doesn't exist if the file picker controller was originated from the File System Access JS API. Move this operation inside the proper condition to avoid crash. Change-Id: Ife5a8451410f91350d280b41203523991f69774f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 5734c78ba87b8a6e1070e6a65777b5def0da581d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumAllan Sandfeld Jensen2023-01-142-1/+1
| | | | | | | | | | | Submodule src/3rdparty d7abc8b24..1ccfe20ad: > FIXUP: Jumbo builds > Merge remote-tracking branch 'origin/upstream-master' into 108-based Change-Id: Ib11a7e5422415229c5ed109d63375c4953df97d2 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 59ef2aea9a35500a953aa43c2a4f4fb7acb2fc6b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix contentsSize and scrollPosition on High DPI screensPeter Varga2023-01-131-3/+8
| | | | | | | | | Provide the same values what are available from JavaScript. Change-Id: I9e047d749279934d0c8ccd45710571e8c7745859 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit dcbcb44f0b5fb5c901594d9b0e6c4c5476709a10) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix CMakeLists.txt dependency of moc files generated from headersPeter Varga2023-01-131-1/+1
| | | | | | | Change-Id: I582706448b7c238a7ff7002df8256e9ee47fa582 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 03e23a17da26ba59b2a6700ed3cededfd70d6e13) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumPeter Varga2023-01-131-0/+0
| | | | | | | | | | | | | | | | | Submodule src/3rdparty 95eaac0c8..d7abc8b24: > [Backport] Fix up guarding SharedImage factories using Vulkan > [Backport] Remove VkDevice parameter from SurfaceFactoryOzone::CreateNativePixmap() > [Backport] viz: Do IWYU in skia_output_surface_impl_on_gpu.cc and .h > FIXUP: Fixes for building with MSVC > FIXUP: Fix gn build windows issue > Update project's url for lighthouse > Fix initalization for FCM > Remove custom push servcie endpoint support Change-Id: I1febdb78004cfca7076b0fd348a8aae2f5c563da Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit b8913e003d7a20c5dfb664fac70d472440db7c37) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Avoid scaling mouse movement properties on High DPI screensPeter Varga2023-01-132-0/+2
| | | | | | | | | | | | | | | | | | | | ui::TranslateAndScaleWebInputEvent() scales movementX/Y if the input event is not raw. It is not exactly clear what is the expected behavior and browsers handle movementX/Y scaling differently. W3C states that currentEvent.movementX = currentEvent.screenX - previousEvent.screenX which is not true with scaling. This is a workaround for https://crbug.com/907309 This fixes tst_QWebEnginePage::mouseMovementProperties auto test with QT_SCALE_FACTOR=2. Change-Id: I6d1fd591ec2bbeb22c448772c367b59509244491 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c69b00df8513237dc5a14f399eeb9b6d624d84f3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix build with -no-accessibilityPeter Varga2023-01-109-19/+20
| | | | | | | Change-Id: I7128608467e4d0ce1b04efa9b82a98f78942d4db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit a4342183199ba9fbd6c86939cf9748e069a09f9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove unused properties from QQuickWebEngineViewPrivatePeter Varga2023-01-103-4/+0
| | | | | | | Change-Id: I368d53e250cd06908db2c2dfb12d6227f835f136 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 31347bd61ee67c1f680dbd1d5bcdf74861b7fae1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>