summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Simple browser example: Add helper function to remove key backspaceFriedemann Kleint2023-03-301-15/+16
| | | | | | | | It otherwise looks like a bit like an oversight or bug. Pick-to: 6.5 Change-Id: If11fe034fa91022eb70c99b8a916fb35ac86f75d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Fix clazy warningsFriedemann Kleint2023-03-302-17/+13
| | | | | | | | | - else after return - Use multiarg version of QString::arg(QString) Pick-to: 6.5 Change-Id: Iceff3ee8877b866b5b9187cd85da54864ab17834 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Drop perl dependency for third party opusMichal Klocek2023-03-302-0/+15
| | | | | | | | | | | Opus needs perl to do some optimizations, in case there is no perl print the warning and drop the perl requirement. Fixes: QTBUG-111958 Pick-to: 6.5 Change-Id: I63a66e71fdaeae61d5c9dbcfe41f03bfb717bb75 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Rolf Eike Beer <eb@emlix.com>
* Update ChromiumMichal Klocek2023-03-301-0/+0
| | | | | | | | | | | | | Pulls in following patches: * e41707d576a Add support for custom gn binary to license generator * 8b8de6420db FIXUP: Jumbo build * 17d1d44b890 [Backport] Security bug 1401571 * 9de0d8a90d9 Fixes for building with GCC-13 * 4d558a69453 Opus needs perl for optimatizations Change-Id: I939daf2c2dcbcd7890bc24de591650f1a4eedd7b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Require gn for generating docsMichal Klocek2023-03-304-10/+58
| | | | | | | | | | | | | Make sure gn is build before doc target, otherwise parallel top level build might not succeed. As configure runs the gn binary is not compiled so use scripting mode to execute gn call during build time. Pick-to: 6.5 Task-number: QTBUG-108751 Change-Id: I7e851de90e2a3ec52f5259d51f677b23d8245bcb Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Minor. Small clean up of qmake leftoversMichal Klocek2023-03-284-306/+0
| | | | | | Pick-to: 6.5 Change-Id: I0ef7f97b3d76c43e815daeb7d6782215c08e4f7d Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* doc: Add the QtPDF Licenses and Attributions sectionShawn Rutledge2023-03-285-0/+53
| | | | | | | Fixes: QTBUG-88482 Pick-to: 6.5 Change-Id: If58a8443afb38f372ca3dc7372472db888586dba Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add gn target to code attributions generatorMichal Klocek2023-03-282-13/+37
| | | | | | | | | Use gn_target for code attributions generation. Task-number: QTBUG-88482 Pick-to: 6.5 Change-Id: I4e5d063dec2347c10eb715a467bdd376e39e60af Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Fix name colision for cmake targetMichal Klocek2023-03-283-5/+5
| | | | | | | | | | After c89fcec the build with manual tests fails as executables have same targets. Fix too compilation issue. Change-Id: I9fd2831b4f0d766e138ae2289e91aa43280568bd Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-281-4/+4
| | | | | Change-Id: Iaea8e2da127e0d5549fc9ec0999dc6b66a35e4cc Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Get rid of our sync point managerAllan Sandfeld Jensen2023-03-284-25/+0
| | | | | | | | | We haven't needed our own since we got rid of the graphics node integration. Pick-to: 6.5 Change-Id: I20b0fdb440c07e451d0e0152e8012ddf59e159cf Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Simple browser example: Use member initializationFriedemann Kleint2023-03-289-25/+16
| | | | | | | | As a drive-by, make constructors explicit. Pick-to: 6.5 Change-Id: I5c8e3d8049504afa4aa5a0d7c1a85bb59eb3cd38 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Use modern string literalsFriedemann Kleint2023-03-286-19/+31
| | | | | | Pick-to: 6.5 Change-Id: I14ed5efed1bf228239f95a8a4addce5d19a9f220 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update initializationAllan Sandfeld Jensen2023-03-281-1/+5
| | | | | | | | Add missing calls to match RunBrowser() logic. Pick-to: 6.5 Change-Id: Ia4a14acb279cc43cc8ab4930f1f5432b03a8cbed Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Use docs target for chromium code attributionsMichal Klocek2023-03-241-1/+1
| | | | | | | | | | The target docs_WebEngieCore, which in the end calls generate_docs_WebEngineCore, is not a dependency for any other target in generated ninja file. Pick-to: 6.5 Change-Id: Ic2f1c93fed8fbb1a44e2f99365b15b7ec3e636f2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Minor. Fix namespace issues of inputmethods manul testMichal Klocek2023-03-253-1/+8
| | | | | | Pick-to: 6.5 Change-Id: Ic0f318aa63cab901b979d76a34e329b2ab8359cf Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add quotes from removed example to documentationAllan Sandfeld Jensen2023-03-241-0/+14
| | | | | | | | | Task-number: QTBUG-108751 Change-Id: I5560c2104e28cb5ca753f5db3579feabf4723980 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit fb2b93818c7ecd5c025b999b2521801da9f4fbc9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove webui exampleAllan Sandfeld Jensen2023-03-2412-453/+17
| | | | | | | | | | | | Doesn't demonstrate anything complicated, the code isn't even worth quoting as snippets. We could consider introducing a help browser to replace it with more functionality. Task-number: QTBUG-108751 Change-Id: I3b796388796a78d017836a10bee18032b2cd4905 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit e4051de7db7b7f0905770280f9a06e133d453cf7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move custom touch handles example to manual testsMichal Klocek2023-03-2212-92/+58
| | | | | | | | | | | | Move and add missing parts as snippet. Task-number: QTBUG-108751 Change-Id: I25849941700337626ca46e399fdb52264bc4659a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Yigit Akcay <yigit.akcay@qt.io> (cherry picked from commit 55f9fc348278b2aa8985ec9c1e7e092f88f68f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move custom dialogs example to manual testsMichal Klocek2023-03-2246-338/+36
| | | | | | | | | | | | | This example shows how to use dialogs, however documentation already provides snippets for that added in 3cbe59e29a. The only missing one was tooltip, therefore add missing snippet and move example to manual tests. Task-number: QTBUG-108751 Change-Id: I84eda805455fb0276046ed1089389d605a8af672 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 6bf30525ee49d270dae6a6440bc607513f21237c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move quick minimal example to manual testsMichal Klocek2023-03-2216-117/+86
| | | | | | | | Task-number: QTBUG-108751 Change-Id: I0998c46f051908855e0406e5fc7c0a422dc3eef0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ed76eef004dbac15f4740d33d06d2b271bf770d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move widgets minimal example to manual testsMichal Klocek2023-03-2213-98/+38
| | | | | | | | | Task-number: QTBUG-108751 Change-Id: I6e237b04d1f6a19f64516cd45aabe4d28099abd5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 34ebe8be93ab10766d034e5a3943a12c8de3a58e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Increase timeout in proxy pac testMichal Klocek2023-03-201-1/+1
| | | | | | | | | | According to ci this test would succeed in 13000ms on qemu. Fixes: QTBUG-111939 Change-Id: I21911920961a885eee38dcd3261e46b497a1c251 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit f576588c85f4f635d38f56a1db087a50c19add42) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtPdf: Support more schemas when loading documents with qmlMichal Klocek2023-03-201-4/+2
| | | | | | | | | | This is follow up after efbb12954cf6e58, use same handling as for reloading on password change. Pick-to: 6.5 Fixes: QTBUG-87275 Change-Id: I1046f57f61346a2cbc03f50ca453209a855ea561 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-201-4/+4
| | | | | Change-Id: I95a330b9d6a972e403029f9558ef93a030e7ec7d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Doc: Use the new \attribution command in licensing documentationTopi Reinio2023-03-182-2/+4
| | | | | | | | | | | Since Qt 6.5, marking a \page as an attribution page is done with a separate command, \attribution. Update the Chromium licensing template and the Qt WebEngine licensing page to use the new command. Pick-to: 6.5 6.5.0 Fixes: QTBUG-112007 Change-Id: I1eac67bee72c078782d9334a604002011e1c3c86 Reviewed-by: Luca Di Sera <luca.disera@qt.io>
* Add search feature to PDF widget exampleShawn Rutledge2023-03-1710-0/+203
| | | | | | | | | Task-number: QTBUG-16211 Task-number: QTBUG-77507 Fixes: QTBUG-92973 Change-Id: I650bed9392e5e098e46368c60fb7c5dbebde666f Reviewed-by: <irfan.omair@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Teach QPdfView to render search result highlightsShawn Rutledge2023-03-173-1/+100
| | | | | | | | | | | | | | | | | | The bounding boxes of all visible search results are filled with a translucent color on top of the page image, because we don't know whether the image is opaque or not. currentSearchResult is further highlighted by drawing bounding box borders. The colors are the same as PdfStyle.pageSearchResultsColor and PdfStyle.currentSearchResultStrokeColor, respectively. Perhaps they could be configurable somehow in the future, but it's not clear yet what API that ought to have, since we do not have suitable QPalette roles (except QPalette::Highlight, which is not translucent). Task-number: QTBUG-77507 Task-number: QTBUG-92973 Change-Id: I3df634229811e72d2d438a39997e0b4887d6bf11 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Make QPdfLinkModel public and use in QPdfViewShawn Rutledge2023-03-178-102/+193
| | | | | | | | | Now you can click links on pages in PDF documents in QPdfView. Task-number: QTBUG-77511 Fixes: QTBUG-102760 Change-Id: I348dcfd906be088aa3fcbe53aec4628b521cc2f3 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QtPDF multipage example: open the search results tab during searchShawn Rutledge2023-03-161-1/+1
| | | | | | | | | | It's unfortunate that we need to use a numeric index; but it will be ok as long as we don't rearrange tabs any more. Pick-to: 6.2 6.5 Fixes: QTBUG-106359 Change-Id: I036c45a6de7690e9ed122c74448a89da343f10d5 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* 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. Pick-to: 6.5 Change-Id: I66b9f134194526c055309bb72bd3a452e2b9a2b2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix syncqt include warningPeter Varga2023-03-161-2/+2
| | | | | | | | | WARNING: qwebengineloadinginfo.h includes QHash when it should include QtCore/QHash Change-Id: I244a9390421ade2344660b66a54d4bf99915f29a Reviewed-by: Yigit Akcay <yigit.akcay@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumMichael Brüning2023-03-111-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 Pick-to: 6.5 6.5.0 Fixes: QTBUG-111585 Fixes: QTBUG-111784 Change-Id: I2493eb6f0defdba6460128e15b1f810398bab3ca Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-111-4/+4
| | | | | Change-Id: If874d303970b2df6f0bdaeb32aabc6f502110f99 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* QWebEngineUrlResponseInterceptor: Implement new URL response interceptorYigit Akcay2023-03-1020-4/+556
| | | | | | | | | | | | | | | | | | | | | This patch adds the QWebEngineUrlResponseInterceptor abstract class, which, when implemented, allows a user to intercept response headers and modify them in any way they like. A response interceptor can be set via QWebEngineProfile::setUrlResponseInterceptor(), QQuickWebEngineProfile::setUrlResponseInterceptor() or QWebEnginePage::setUrlResponseInterceptor(). Also, the QWebEngineUrlResponseInfo class is implemented, which contains the request and response data to be used with the response interceptor. If a response interceptor is set in the profile and page, the one in the profile takes precedence. Fixes: QTBUG-61071 Change-Id: I484d14373ff597b1d531541c066f0102bae28c72 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update ChromiumMichael Brüning2023-03-031-0/+0
| | | | | | | | | | Submodule src/3rdparty bdb22d05..0dc29a1e: * Revert "Remove unused ProduceRGBEmulationGLTexture calls with its usage." Pick-to: 6.5 6.5.0 Fixes: QTBUG-111585 Change-Id: I2dabfbc1f79e4d61ff42273b001808c7237ab8cf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-031-4/+4
| | | | | Change-Id: I9350d6bf95661b88773f960a50aad742743cf7f4 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix not working password test for QPdfQuickMichal Klocek2023-03-022-8/+4
| | | | | | | | | | | | | In qml url can have different schemas like 'qrc' 'file' 'assets'. Make correct conversion so file can be loaded. Note check isLocalFile() is not true for qrc scheme. Fixes: QTBUG-106072 Pick-to: 6.5.0 6.5 6.4 Change-Id: I4dcc969e4c6d9b3f58ea5d81d20d8e81b55edfde Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Fix wrong WebEngineCertificateError property nameAndreas Eliasson2023-03-012-3/+3
| | | | | | | | | The correct property name should be type, not error. Fixes: QTBUG-111574 Pick-to: 6.5 6.4 Change-Id: I276823f5bc664a99153b31e5bba36ae34608a9b9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Pass system library paths to cmakeMartin Negyokru2023-03-013-5/+27
| | | | | | | | | | | | Generate a new rsp file for each cmake target containing '-L' flags and pass them to cmake. Task-number: QTBUG-105053 Task-number: QTBUG-111225 Change-Id: Ib25c009795b776bc5f0f6e07fb89b932ef30b484 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a21742ef6064c1e84ebc43468d253dd14d86bf02) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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. Change-Id: Ic7b6d4ea91dc8b29f344118c28932fa80a7a8d10 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a75051ee7b4dd9ffe86e146d98c7d6412c756621) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix initialization of QWebEngineDownloadRequest::totalBytes for WidgetsPeter Varga2023-03-016-33/+30
| | | | | | | | | | | | QQuickWebEngineProfile already initializes totalBytes. Also clean up QWebEngineDownloadRequestPrivate and fix typo in documentation. Pick-to: 5.15 6.4 6.5 Fixes: QTBUG-104869 Change-Id: I8c4b79c076ddc63180960e22a9488b45ff6c4402 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Fix example codeAndreas Eliasson2023-02-271-1/+1
| | | | | | | | | | | | Use the .parse() method from the marked.js third party library. https://marked.js.org/ Fixes: QTWEBSITE-1083 Pick-to: 6.5 6.4 6.2 Change-Id: I59bcf14ce7169570a234169c6b48f720271c1e72 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Add qml filesystem api testsMichal Klocek2023-02-274-0/+200
| | | | | | | | | | | | | | | | | | | There are three functions we use within file systems API, which trigger dialogs: * window.showSaveFilePicker * window.showOpenFilePicker * window.showDirectoryPicker Only first one was tested with widgets, therefore add tests which cover use of api, and also test cover the found issues in previous commits. Note we have separate test to cover file system dialogs coming from <input> html tags in tst_filePicker Pick-to: 6.5 6.4 Change-Id: I4616efa84688ed471fb8c4566e49262bce945638 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix filesystem request qml namespaceMichal Klocek2023-02-271-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. Pick-to: 6.5 6.4 Change-Id: I6965dd0a9b65021cd9c290aaecef9fb9fd82735a Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix file url in webengine filesystem requestMichal Klocek2023-02-271-1/+1
| | | | | | | | | We should return filesystem url, not just string converted to url. Pick-to: 6.5 6.4 Change-Id: I883e4dd092396e918115cb609ed040c92a871737 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix use after free in permission grantMichal Klocek2023-02-274-2/+29
| | | | | | | | | The permission grant can become dangling pointer in origin state struct, fix it. Pick-to: 6.5 6.4 Change-Id: If16b604a8c3c05d09ea923251dabcae73192dd7d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumMichael Brüning2023-02-271-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 Pick-to: 6.5 Task-number: QTBUG-111363 Change-Id: I54ca00ef411d21eb02780f1096117d762472d5d1 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-02-241-4/+4
| | | | | Change-Id: I7ef5b8fc0cb1a6e0de91d8b861ebd46192370383 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* 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) Pick-to: 6.5 Change-Id: I6f102af8efcd12b6b267dceb9de59d685fd22f9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>