summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move out GetInProcessGpuShareGroup form content browser clientHEADdevMichal Klocek5 days4-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. Pick-to: 6.5 6.4 Change-Id: Iedcbc8c3c7d1754d1937e6b2c2a470c0e489a597 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumMichal Klocek5 days1-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 Pick-to: 6.5 Change-Id: I0af3a1f12a315fc4756d9463d3837de87db888b0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove quicktestbrowserPeter Varga5 days12-1069/+0
| | | | | | | | | | | | | It is not maintained for a while and most probably also not used because it is not working since Qt6. QuickNanoBrowser example should be used instead, because it implements most of the quicktestbrowser features. Pick-to: 6.5 Change-Id: I330e1c6e0f4bf81c0bce0e6d70d47a513f63d8c7 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Add feature permission request handlingPeter Varga5 days2-6/+98
| | | | | | | Pick-to: 6.5 Change-Id: Ia0d8bffa419174234e78e1359871e0dfa36b1636 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove usage of Quota Permission Request APIPeter Varga5 days1-7/+0
| | | | | | | | | This amends commit 8fd7140082e3a752ca80882a29128ffc12d12fa4 Pick-to: 6.5 Task-number: QTBUG-56354 Change-Id: I82803cf9bfab1ed5a07494ecce86722b634c204c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove deprecated Qt.labs.settingsPeter Varga5 days1-1/+1
| | | | | | | | | | | | Fixes deprecation warning: qrc:/BrowserWindow.qml:35:5: QML Settings: The Settings type from Qt.labs.settings is deprecated and will be removed in a future release. Please use the one from QtCore instead. Pick-to: 6.4 6.5 Change-Id: Ie027b243a312f148f72adfd6e68ce0f8d6e6d62c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Replace uses of deprecated _qs with _sPeter Varga5 days1-7/+9
| | | | | | | Pick-to: 6.4 6.5 Task-number: QTBUG-101408 Change-Id: Ie8a7944c3ded5662953bed00f022905f5805275e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Replace custom ColorDialog with QtQuick ColorDialogMartin Negyokru6 days4-277/+303
| | | | | | | | Add fallback to custom implementation. Add subdirectories of ControlsDelegates to import path. Change-Id: I88224b267419664484cd0667456d9463d5c61bee Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Replace QtWebEngineCore::initialize() with QtWebEngineQuick::initialize() in ↵Peter Varga6 days3-5/+6
| | | | | | | | | | error messages Also fix typos. Pick-to: 6.4 6.5 Change-Id: I6e505102dc2241e4e00b181d0c4a097af4a40d35 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix navigation error for incomplete URLs in webenginequick examplesMartin Negyokru6 days12-3/+73
| | | | | | | | | Use QUrl::fromUserInput in lifecycle and webengineaction examples. Task-number: QTBUG-96010 Pick-to: 6.5 Change-Id: I69cbcb1db31b0766d05f751b4aede11092d078d5 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update ChromiumMichal Klocek6 days1-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 Change-Id: I9fe5bd6c3643342b6f1b0f8a6c5daaec65e76944 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit d248cd2d37c413f878c6d5effa70c4b917dfc5de) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Yield fatal error for empty command-line argumentsPeter Varga8 days1-9/+6
| | | | | | | | | | | | Resolving TODO, the corresponding Active Qt issue has been fixed. This amends commit 614d6639b875f53b21eaabd2d5928b84b59af707 Pick-to: 6.5 Change-Id: If0144af83cd1d512b151ce82a38e47b4811fbfa8 Taks-number: QTBUG-110157 Taks-number: QTBUG-110158 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* tst_QWebEngineUrlRequestJob: remove unused includesYigit Akcay11 days1-2/+0
| | | | | | | | This change removes unused header includes from tst_QWebEngineUrlRequestJob. Change-Id: I8827fd907e4d9f839e94733639bb731e33a86ab4 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Suppress the QTP0001 policy warningAmir Masoud Abdol11 days1-0/+1
| | | | | | Pick-to: 6.5 Change-Id: If10e6c259d73dd1e09c4ddac0b297b856fb13502 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QWebEngineUrlRequestJob: Add function to set additional reponse headersYigit Akcay12 days11-4/+192
| | | | | | | | | | | | | | | Add additional response headers field to URLRequestCustomJobDelegate. Those fields can be set via QWebEngineUrlRequestJob::setAdditionalResponseHeaders( const QMap<QByteArray, QByteArray> & ). They are added to URLRequestCustomJobProxy::m_client when URLRequestCustomJobProxy::reply(std::string, QIODevice) is called, and added to the response headers within CustomURLLoaderFactory::notifyHeadersComplete(). Fixes: QTBUG-106578 Change-Id: Ie0f0af07a5381c6f24ec0a1ee1b5bcb0e8c4fa5f Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* 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. Pick-to: 6.5 Task-number: QTBUG-110157 Change-Id: Ibf14b11bbf8b8c72d8a1d8419377a25b311b9ebe Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Disable WebEngineContext dump by defaultPeter Varga2023-01-194-19/+33
| | | | | | | | | | | | | 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 Pick-to: 6.5 Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix deprecation of Quota Permission Request APIPeter Varga2023-01-183-4/+7
| | | | | | | | | | | | | Add reason string and version for deprecation. Also mark the constructor of QWebEngineQuotaRequest class deprecated. Amends 8fd7140082e3a752ca80882a29128ffc12d12fa4 Pick-to: 6.5 Task-number: QTBUG-109580 Task-number: QTBUG-56354 Change-Id: Ifa15bb5eaccabd62acbeb05df071c4bdc9584c95 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-01-181-4/+4
| | | | | Change-Id: Ida8a536afd3b4ca7e1d98ca3e7fd9a911a8ddcb4 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Add InputEventObserver to child framesMartin Negyokru2023-01-175-39/+154
| | | | | | | | | | | | | | | | | | | | 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. Pick-to: 6.5 Fixes: QTBUG-109348 Change-Id: I20439a9068c5c2f8416a350891a6cf8830e1a5d6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Fix warning and minor clean-upPeter Varga2023-01-173-3/+2
| | | | | | | | | | - Fix typo in link - Qt Location is no longer linked in Qt WebEngine Features - Replace Qt Location with Qt Positioning module Pick-to: 6.4 6.5 Change-Id: Ia736fee8f0775fd6067c6f1e7a670b3bd7d8acb5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Log raw abnormal exit codesAllan Sandfeld Jensen2023-01-171-1/+2
| | | | | | | | We lose details in the translation to Qt exit codes. Pick-to: 6.5 6.4 Change-Id: I890242ac78bf82cc6ef38d3aa8c6a25677714071 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Avoid -1 render-termination codesAllan Sandfeld Jensen2023-01-171-0/+5
| | | | | | | | Cover all the possible values in the translation. Pick-to: 6.5 6.4 Change-Id: Id5db3cceddd62f9f7c77ee8a2017e9c920f8b7d5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Clean up accessibilityPeter Varga2023-01-1712-79/+70
| | | | | | | | Build less when disabled. Pick-to: 6.5 Change-Id: I196073ce859216a041b3d13ea585fca749a52700 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove blink::WebSecurityOrigin leftoverPeter Varga2023-01-161-4/+0
| | | | | | | | Leftover from Chromium 80 adaptations. Pick-to: 6.5 Change-Id: I644142e6552e6a45b0a5cc2a501b20dd951c9cea Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Skip favicon database QML tests on High DPI screensPeter Varga2023-01-161-0/+6
| | | | | | | | | | | | | The tests use the middle pixel's value of an image to check if a certain icon is loaded. The images are scaled on High DPI screens and the pixel values are changed due to interpolation. It cannot be expected to have the same pixel values for different device-pixel-ratio settings, thus rather skip the test than maintaining a list of pixel values for different scales. Pick-to: 6.5 Change-Id: I8d142de0106167a5d16c540fa468003b36c95317 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix opening files with File System Access APISzabolcs David2023-01-162-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. Pick-to: 6.4 6.5 Change-Id: Id73d8fc6e9bd518692362133f3dafa472f0e97a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Quick: Fix file selection modes in the default UI delegateSzabolcs David2023-01-157-5/+77
| | | | | | | | | | 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. Pick-to: 6.4 6.5 Change-Id: Icc62369539c56666e596e5ee6f1b3068a43acd81 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crash in Quick when File System Access dialog acceptedSzabolcs David2023-01-151-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. Pick-to: 6.4 6.5 Change-Id: Ife5a8451410f91350d280b41203523991f69774f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumAllan Sandfeld Jensen2023-01-143-3/+3
| | | | | | | | | | Submodule src/3rdparty d7abc8b24..1ccfe20ad: > FIXUP: Jumbo builds > Merge remote-tracking branch 'origin/upstream-master' into 108-based Pick-to: 6.5 Change-Id: Ib11a7e5422415229c5ed109d63375c4953df97d2 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix contentsSize and scrollPosition on High DPI screensPeter Varga2023-01-133-10/+15
| | | | | | | | Provide the same values what are available from JavaScript. Pick-to: 6.5 Change-Id: I9e047d749279934d0c8ccd45710571e8c7745859 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix CMakeLists.txt dependency of moc files generated from headersPeter Varga2023-01-131-1/+1
| | | | | | Pick-to: 6.4 6.5 Change-Id: I582706448b7c238a7ff7002df8256e9ee47fa582 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-01-131-4/+4
| | | | | Change-Id: I62b1926b3c2ab89595fcd7a362d1c2978e6a4f45 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update ChromiumPeter Varga2023-01-121-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 Pick-to: 6.5 Change-Id: I1febdb78004cfca7076b0fd348a8aae2f5c563da Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Do not ignore the first file by gn_find_mocables.pyPeter Varga2023-01-121-1/+1
| | | | | | | | | | Amends 10d849f82e0408350d9235cafdf04cc654ac0046 The first argument was the directory in the old times. Pick-to: 6.4 6.5 Change-Id: I98c5f8c762c3f41124628e64a720a52203eeac40 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Avoid scaling mouse movement properties on High DPI screensPeter Varga2023-01-122-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. Pick-to: 6.5 Change-Id: I6d1fd591ec2bbeb22c448772c367b59509244491 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-01-091-4/+4
| | | | | Change-Id: Ic90b69adb1dfc3a2e0f0e0c514fdeee9b8a0780b Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix build with -no-accessibilityPeter Varga2023-01-0910-20/+29
| | | | | | Pick-to: 6.5 Change-Id: I7128608467e4d0ce1b04efa9b82a98f78942d4db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove unused properties from QQuickWebEngineViewPrivatePeter Varga2023-01-093-4/+0
| | | | | | Pick-to: 6.5 Change-Id: I368d53e250cd06908db2c2dfb12d6227f835f136 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crash when /usr/share/X11/xkb is emptyMartin Negyokru2023-01-091-1/+5
| | | | | | | | | Fallback to Stub implementation instead of crashing. Pick-to: 6.5 Task-number: QTBUG-105124 Change-Id: I7ad41daefe279b33bf924c74ee90e7d6a2375a63 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix translation of QPdfLink::toString()Friedemann Kleint2023-01-071-6/+5
| | | | | | | | | | Use the same message text as in QML and allow for changing languages by removing the static string constant. Use 1 fractional digit for the point. Pick-to: 6.5 Change-Id: Iac3b5374e32a9a97af157c6ba6833ad845b02750 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Fix qdoc link failuresMichal Klocek2023-01-065-7/+8
| | | | | | Pick-to: 6.5 6.4 Change-Id: I6b18382a376bf3067323e801f6f39bf4ec09e9dc Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update Chromium to 108-basedAllan Sandfeld Jensen2023-01-061-0/+0
| | | | | | | Pick-to: 6.5 Task-number: QTBUG-105147 Change-Id: I65ba9ab91fb55b51b20583a5dacc8b2d9634c42e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Adaptations for 108-basedAllan Sandfeld Jensen2023-01-0656-153/+228
| | | | | | | Pick-to: 6.5 Fixes: QTBUG-105147 Change-Id: I0022964903f3443cc97843c62468ab9be8ae2ed8 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-01-041-4/+4
| | | | | Change-Id: Ied77e0e75f389c48b83422019ad6a718021e3289 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-01-031-4/+4
| | | | | Change-Id: I5216aca6f8597203af364f7c2b0783f4939227de Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix creation of nssdb for certificate store unit testMichal Klocek2023-01-022-7/+13
| | | | | | | | | | | | | In case there is no nssdb in system create empty database. This got unnoticed as running webengine creates one, however when doing test configuration on fresh system without one pk12utils fails. Move 'nickname' to certificate otherwise clean job does not work. Task-number: QTBUG-109179 Pick-to: 6.5 6.4 Change-Id: I401ffab62dd13d7aa1459672b1170afcde3cde83 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Remove QT_USE_SYNCQT_CPPAlexey Edelev2023-01-021-2/+0
| | | | | | | | Option has not effect anymore. Pick-to: 6.5 Change-Id: Ifa8dfd8ba39b80c79c796729c0cdd193c14c78e6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update push example after setPushServiceEndpoint changeMichal Klocek2022-12-227-7/+204
| | | | | | | | | | | | We have now extra call to enable push messaging, therefore drop usage of simple browser in example and use the same code as in Notification Example but add new settings and fix profile to be not off-the-record. Task-number: QTBUG-107442 Pick-to: 6.5 Change-Id: I3069c4cf2b6a6ce864c1e4c578ab03adb67984e4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Update ChromiumMichal Klocek2022-12-221-0/+0
| | | | | | | | | | | | | Pulls in following patches: * 481d91afcf3 Fix initialization for FCM * df46b0483d4 Force python to write with utf8 encoding * 1051027a309 Remove custom push service endpoint support * 702cba29bcc FIXUP: Fixes for jumbo build * fb8de43885e FIXUP: Fixes for jumbo build Change-Id: Ifcd7fe759ea0b8033ee3a0fce889f4fd165a5af7 Reviewed-by: Michael Brüning <michael.bruning@qt.io>