summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Update ChromiumMichael Brüning2022-12-092-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty a0f47d47..0a34013e: * Bump V8_PATCH_LEVEL * [Backport] CVE-2022-4262: Type Confusion in V8 * [Backport] CVE-2022-4179: Use after free in Audio * [Backport] CVE-2022-4189: Insufficient policy enforcement in DevTools * [Backport] CVE-2022-4184: Insufficient policy enforcement in Autofill * [Backport] CVE-2022-4182: Inappropriate implementation in Fenced Frames * [Backport] CVE-2022-4181: Use after free in Forms * [Backport] CVE-2022-4180: Use after free in Mojo * [Backport] Dependency for CVE-2022-4180: Use after free in Mojo * [Backport] CVE-2022-4178: Use after free in Mojo (2/2) * [Backport] CVE-2022-4178: Use after free in Mojo (1/2) * [Backport] CVE-2022-4175: Use after free in Camera Capture * [Backport] Dependency for CVE-2022-4175 (2/2) * [Backport] Dependency for CVE-2022-4175 (1/2) * [Backport] CVE-2022-4174: Type Confusion in V8 Task-number: QTBUG-109224 Change-Id: I9cd5471dbbba678347ea0d85e6e97ed186f2e9a8 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix build with disabled webengine_extensionsPeter Varga2022-11-304-11/+11
| | | | | | | | | | | | | | PDF viewer depends on extensions. Guard these dependencies to make able to build with disabled webengine_extensions and enabled webengine_printing_and_pdf. The PDF Viewer is not expected to work with this configuration but the build should pass and loading a PDF should result a download. Change-Id: I4d75e356951c82333ec3dbcd7b6271b9305de3df Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 20198450e392555b870e6448ca5544958924bb87) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Emphasize in-memory and system stored client certificatesMichal Klocek2022-11-301-5/+7
| | | | | | | Task-number: QTBUG-106497 Change-Id: If03062a5ab6cf5f6d14329637f44b5ea7675f65a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 0902e992ef63df5fe001e4865ebec4e11141f0a3)
* Doc: Update the docs related to the FaviconMichal Klocek2022-11-301-6/+23
| | | | | | | | Fixes: QTBUG-106501 Change-Id: Ib70020d947b3010d22315db3bd32c017e55f71c7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 247e598a74b65ec82e10c03243a36038c13361f0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Emphasize QtNetwork is not usedMichal Klocek2022-11-301-0/+3
| | | | | | | | Fixes: QTBUG-106510 Change-Id: Ib6a63fb5796c437c14ba0885507a3cf6bf9d89f9 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 6193ceb67b3d30904931c34aa2c7f5f97237d3e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add WebGL featureMichal Klocek2022-11-301-0/+11
| | | | | | | Fixes: QTBUG-106503 Change-Id: I280be8707e803b6f01dbdffb76ab9cbce182b7af Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 13345c1de2c5cc59335a42d6928cfaecaffd6a58)
* Doc: Add Local Storage featureMichal Klocek2022-11-301-0/+26
| | | | | | | | Fixes: QTBUG-106502 Change-Id: I01dcec5e76db7921fc2597e6921e3bc6a6424aa8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 147bf5922e4e287aff1d196e48451bf8767205aa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add webengine-spellchecker build switch docsMichal Klocek2022-11-301-0/+9
| | | | | | | | Fixes: QTBUG-106500 Change-Id: I7a6fabd3526bd2aa164ac992be8cfd145106d7df Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 8a11de7fe0baf4b72ccaa396404c86767787190e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Improve html5 geo location docsMichal Klocek2022-11-301-7/+9
| | | | | | | | Task-number: QTBUG-106498 Change-Id: I7e2b9d6b5cc3a3a9593303684d8f9eaf19f37dc8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 6ff5d9691a392082c79fb07a89d9d8daf4a76500) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Improve QWebEngineClientCertificateStore documentationMichal Klocek2022-11-302-1/+20
| | | | | | | | Fixes: QTBUG-106497 Change-Id: Ic10d2d54722b071eaacd9f7cb74b08c8ecedcd65 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 2aaaf875327b553eafa29a6ca943893f6e362ef9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add hardware acceleration featureMichal Klocek2022-11-301-0/+15
| | | | | | | | Fixes: QTBUG-106496 Change-Id: Ie1f74d5c9878f6079089007c1cc79a427e85bd70 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 16ae468b1034fc2a44b80dd4d964984771d663fa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix feature listing order in docsMichal Klocek2022-11-301-63/+64
| | | | | | | | We keep features in alphabetic order. Change-Id: I4716f3f71dd16e2f01f5f3ca8650ed3d1c25fe64 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit f312bd5bc28d431e63059df41dd8fe69eb9d4aeb)
* Mention WebSockets in docsMichal Klocek2022-11-301-0/+16
| | | | | | | | | | | | | | | | | QtWebChannel has an example for a use case of HTML web sockets and connectivity of the native side of application. We don't need to create a new example of our own by mentioning this. However, the chat client application uses JS libraries served from remote, so we have to enable LocalContentCanAccessRemoteUrls setting to make it work out of the box in WebEngine example browsers. Desktop Chrome works the same way by default. Task-number: QTBUG-106505 Change-Id: I9020d0a09a88de16d32af063aee5d55c9837f484 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit d1607c91dff1d02621c64cc93d3c1a246ce4fe9f)
* Update ChromiumMichael Brüning2022-11-281-0/+0
| | | | | | | | | | | | | | Submodule src/3rdparty 5e7f517e..a0f47d47: * [Backport] CVE-2022-4135: Heap buffer overflow in GPU * Fix WebRTC crash introduced by fix for security bug 1361612 * [Backport] Disable GPU acceleration on VMware on Linux * skia: fix compilation with MSVC2022 Task-number: QTBUG-108106 Fixes: QTBUG-108843 Change-Id: I25cc2d3d69422b331b8a7cbd4d81d6fee5a777a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix Chromium version documentationAllan Sandfeld Jensen2022-11-241-3/+12
| | | | | | | | | | | | Stop listing a number we forget to update, and document the process we use for selecting Chrome versions and patches levels. Fixes: QTBUG-105146 Change-Id: I1cd632ef3fe3a4b1bf10a702a344ff69b2552d61 Reviewed-by: Vladimir Minenko <vladimir.minenko@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit b4d169e63641919bc8aea056f213cb69fdca98f3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-11-243-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 9457651e..5e7f517e: * [Backport] Security bug 1375290 (2/2) * [Backport] Security bug 1375290 (1/2) * [Backport] Dependency for security bug 1375290 (2/2) * [Backport] Dependency for security bug 1375290 (1/2) * [Backport] Security bug 1376639 * [Backport] Security bug 1378916 * [Backport] CVE-2022-3890: Heap buffer overflow in Crashpad * [Backport] CVE-2022-3889: Type Confusion in V8 * [Backport] CVE-2022-3887: Use after free in Web Workers * [Backport] CVE-2022-3888: Use after free in WebCodecs * [Backport] CVE-2022-3885: Use after free in V8 * [Backport] Fix build in Python 3.11 (invalid mode: 'rU') * mojo: fix compilation with C++20 * Make GrVkImage external Also adds stubs to enable building with external GrVkImage. Task-number: QTBUG-108106 Change-Id: I473d75421ab2099ce6d53a5ca09d68c3067413f7 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Simplify mime-type listAllan Sandfeld Jensen2022-11-231-19/+27
| | | | | | | | | | | A complex list of mime-types seems to confuse Discord, and this also lowers our entropy leak. Fixes: QTBUG-108265 Change-Id: Ic33d908c4d3c5efe93b086c7b52f39d81a748b32 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> (cherry picked from commit 51c46bc99b2a8f1d3eda2ee3e8d7ebc3fc7fea3f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Port from qAsConst() to std::as_const()Marc Mutz2022-11-2217-32/+32
| | | | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. This is a 6.4 re-run of the script we ran in dev, in order to avoid conflicts between the branches when cherry-picking. Change-Id: I5eca3df3179dfb2b2682c75a479ba9a4259cc703 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Port from container::count() and length() to size() - V5Marc Mutz2022-11-2214-43/+43
| | | | | | | | | | This is a the same semantic patch (qt-port-to-std-compatible-api V5 with config Scope: 'Container') as in dev. I've re-ran it in 6.4 to avoid cherry-pick conflicts. Change-Id: I9621dee5ed328b47e78919a34c307105e4311903 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Minor. Remove unsued qtwebengine_extensions_features.gniMichal Klocek2022-11-181-27/+0
| | | | | | | Change-Id: I7e2806bfc8367a4137d1e489741ea044376e4203 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 3b0ff7b00bed74fe2385ac7e93dea9ee61f4aa31) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix probabilistic signature schemeMichal Klocek2022-11-171-2/+2
| | | | | | | | | We failed to support pss, which ended up in handshake failures Change-Id: I12c50d6a5f2dcf32d47708a958e2fe5a18316986 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 2d77e333eff7605a489ec65600b78e1b49df37c7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Make client certifcate work without CAMichal Klocek2022-11-171-5/+14
| | | | | | | | | | | | | | | | | | | | | Check for expired certificate, they will most likely fail during authentication, so no point of selecting them. According to rfc5246 certificate authorities list in certificate request can be empty. "If the certificate_authorities list is empty, then the client MAY send any certificate of the appropriat ClientCertificateType, unless there is some external arrangement to the contrary." https://datatracker.ietf.org/doc/html/rfc5246#section-7.4.4 Support empty CA list. Change-Id: I0ae3cbd7b0cd13ef943b431c81c3edea5ae9162d Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 5e4f626bef2b753446c72a820be0b57235bf68d9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-11-032-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sumbodule src/3rdparty : > [Backport] CVE-2022-3723: Type Confusion in V8 > [Backport] CVE-2022-3653: Heap buffer overflow in Vulkan > [Backport] CVE-2022-3654: Use after free in Layout > [Backport] CVE-2022-3652: Type Confusion in V8 > [Backport] CVE-2022-3445: Use after free in Skia > [Backport] CVE-2022-3450: Use after free in Peer Connection > [Backport] CVE-2022-3446 and CVE-2022-35737 > Reland two changes for establishing gpu channel > FIXUP: Stop using C++20 initialization > FIXUP: Legalize the bloody code > [Backport] CVE-2022-3308: Insufficient policy enforcement in Developer Tools (2/2) > [Backport] CVE-2022-3308: Insufficient policy enforcement in Developer Tools (1/2) > [Backport] Security bug 1360936 > [Backport] CVE-2022-3313: Incorrect security UI in Full Screen > [Backport] CVE-2022-3307: Use after free in Media. > [Backport] CVE-2022-3315: Type confusion in Blink > [Backport] CVE-2022-3201: Insufficient validation of untrusted input in Developer Tools (2/2) > [Backport] CVE-2022-3201: Insufficient validation of untrusted input in Developer Tools (1/2) > [Backport] CVE-2022-3304: Use after free in CSS > [Backport] CVE-2022-3373: Out of bounds write in V8 > [Backport] Security bug 1356308 > [Backport] CVE-2022-3370: Use after free in Custom Elements > [Backport] Security bug 1348283 > [Backport] Security bugs 1346938 and 1338114 > [Backport] CVE-2022-3200: Heap buffer overflow in Internals > Make user agent helpers buildable without unwanted dependencies > Adapt DevToolsFileHelper for WebEngine > [Backport] CVE-2022-3199: Use after free in Frames. > [Backport] CVE-2022-3198: Use after free in PDF > [Backport] CVE-2022-3197: Use after free in PDF > [Backport] CVE-2022-3196: Use after free in PDF > [Backport] Security bug 962815 > [Backport] Security bug 1352549 > [Backport] CVE-2022-3056: Insufficient policy enforcement in Content Security Policy. > [Backport] CVE-2022-3057: Inappropriate implementation in iframe Sandbox > [Backport] CVE-2022-3053: Inappropriate implementation in Pointer Lock > [Backport] CVE-2022-3055: Use after free in Passwords > Disable less privileged app container > Fix debug builds on arm32 > [Backport] CVE-2022-3040: Use after free in Layout > [Backport] CVE-2022-3041: Use after free in WebSQL > [Backport] CVE-2022-3038: Use after free in Network Service > Merge branch 'upstream-master' into 102-based > (origin/upstream-master) BASELINE: Update Chromium to 102.0.5005.177 > FIXUP: Trim down some dependencies of push messaging > Fixup partial application of macOS OpenGL pixel format selection patch Fixes: QTBUG-108104 Fixes: QTBUG-108105 Task-number: QTBUG-108106 Change-Id: I4f0e4e267288904443f648b544606aa85dcaa16b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Silence synqt.cpp warnings-turned-errorsMarc Mutz2022-11-021-0/+4
| | | | | | | | | | | Says syncqt.cpp: ERROR: [...]/render_widget_host_view_qt_delegate_quickwindow.h does not include QT_BEGIN_NAMESPACE Change-Id: I4109c493bbf25a6f7c65e35e9c697f15c7f0ac3f Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit e6e66f048c873b4a972860c3072ef5a7b4b383b7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix compilation 6.3 against 6.4Michal Klocek2022-11-011-1/+7
| | | | | | | | | | | Check if type registrations should be in Qt namespace. This amends 5208245d2ccabbc07ecf6b845cfa3d971d2ed7e5. Change-Id: I3f349a4aedac4410b1a581264d1e8877ba0bcf44 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 291082bf58fbafc2d6c2d48819d11d350749b1eb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix inputFieldOverridesShortcuts unit testMichal Klocek2022-11-011-1/+1
| | | | | | | | | | | | Since a818d49aa58c7ff871f89f7db4b1234402092994 in qtdeclarative we should explicitly ignore the event. Fixes: QTBUG-108008 Change-Id: I1b9beabb39e19df8af86b8cadaafb21eef9dc4a8 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 1f753957691e9fd4c9e107445958c224ca36cc9b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Cleanup and document webEngineArgs command line optionMichal Klocek2022-10-195-27/+40
| | | | | | | | | | | | Fix usage of badcode vs code. This commit amends 82357352b49fdcba80727feec441053f676b5af2. Fixes: QTBUG-107502 Change-Id: I50be8b37a81f33ef8e8dff3985d00f562542031a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 337f6fa60b1fd17549537ed16c83b57ac5318c25) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix bogus layouting of qwebengineviewMichal Klocek2022-10-191-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | We did not really change pointers for doing a widget and a item delegate binding. This at some point was blowing up as we did not remove the old widget before inserting the new widget into the internal webengineview layout. The issue could get unnoticed for a while as the old widget got eventually removed on a destruction. However, at times when on the qlayout activation call the old widget was considered, resize event was triggered which was setting viewport to false value (minimum size to hold two webcontents). Make sure we remove widget before adding the new widget. This fixes the widget and the item bind, however this logic should be rewritten for dev branch as is get more and more complex. Fixes: QTBUG-107529 Change-Id: I31d180b54f52e38b3c335cfa2bf3afa61e449677 Reviewed-by: Martin Negyokru <negyokru@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 7c5546a78b1cbcf6d811648c003deb219ab6d070) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Only warn the user about conditions that are not metMichael Brüning2022-10-181-1/+4
| | | | | | | | | | | | | | | | When loaded from a plugin, we printed a warning about setting the application attribute Qt::AA_ShareOpenGLContexts and choosing OpenGLRhi as the scene graph renderer interface even when those conditions were already met. This patch checks if these conditions are already met before printing the warning. Change-Id: Iee06fa4560e022f0611f07a082513dc91c8065c9 Fixes: QTBUG-103958 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 9e5214e617471b326cc975095054f859924b4168) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix fullscreen request blocking after running fileChooserMartin Negyokru2022-10-141-0/+4
| | | | | | | | | | | | Chromium blocks fullscreen requests while the fileSelectListener is alive. Release it manually after the accept/reject signal. Fixes: QTBUG-106975 Change-Id: Iac4868b8ab0268b8ddb94912286155af73ebd343 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 1837eeb96693116ba4ec8542035003cac67421bc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix logic in bindViewAndDelegateItemMartin Negyokru2022-10-111-3/+9
| | | | | | | | | | | | Updating adapterClient is required to Bind correctly. Bring back old logic from 6.3. Fixes: QTBUG-105953 Change-Id: I8845948db379c24902df0dd2dad96982a1455531 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit e995556338da4d381c457ddd978440f5099af496) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add the git repo URL for the Qt PDF examplesVenugopal Shivashankar2022-10-101-0/+1
| | | | | | | | | This should enable the readers to access the up-to-date example code. Change-Id: Ie62bdea39d1374b49f1b8f5bf576b27c8f37996f Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit a14c5924d26fa73624269e0d46f914a8ec3471da)
* Do not intercept websocket connection when there is no associated frameMartin Negyokru2022-10-031-2/+1
| | | | | | | | | | This fix is based on chrome's implementation. Fixes: QTBUG-107144 Change-Id: If042e4156b8a4bdb27a210c4db94e3a6198aed7d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 64b7da9dab82713fdcb2e03d8a2715421eae5685) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Note DNS prefetches can overrule remote access permissionAllan Sandfeld Jensen2022-09-291-1/+2
| | | | | | | | Fixes: QTBUG-106967 Change-Id: I0407258403ec3b76ce694e0f592fe57b4f45c746 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 6bd06fdb35f4ad973a2abaaa35b5c12cbca0d37a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Work-around GNOME bug misidentifying HTML contentAllan Sandfeld Jensen2022-09-211-1/+4
| | | | | | | | | | | Correct application/x-extension-html to text/html Fixes: QTBUG-97392 Fixes: QTBUG-106688 Change-Id: I0d65c6950c5ba1504586cf564268463c5d4cd483 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit 84ebd698597cf7a45b5e0967221547c21b1d67e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix client certificate regression on LinuxAllan Sandfeld Jensen2022-09-201-2/+3
| | | | | | | | | | The system certificate store was never generated after the define switched to being a BUILDFLAG Change-Id: I2efa54bd397e2dde55c249747f73a9ffb08e80ea Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit b6c1564c22332271c0a9473894200646efef4d50) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Check QT_OPENGL for softwareMichal Klocek2022-09-151-0/+7
| | | | | | | | | | | | | According to qt docs this variable should have same effect like setting Qt::AA_UseSoftwareOpenGL on application, therefore read that in case of detecting the software mode. Task-number: QTBUG-106095 Change-Id: I00fa8f0607ca44533c445434d1a35a1524bab679 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit fd1e82d0c09c73e42f172ffdf7edbcc952232155) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumAllan Sandfeld Jensen2022-09-151-0/+0
| | | | | | | | | | | | | | | | Submodule src/3rdparty 82da2de9a..1dc53de69: > [Backport] CVE-2022-3040: Use after free in Layout > [Backport] CVE-2022-3041: Use after free in WebSQL > [Backport] CVE-2022-3038: Use after free in Network Service > Merge branch 'upstream-master' into 102-based > FIXUP: Trim down some dependencies of push messaging > Fixup partial application of macOS OpenGL pixel format selection patch Fixes: QTBUG-106254 Change-Id: Ifd55481c8d26f0e2cf8cb9e01cdaa8aa530354d8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit fbdb72b4981a9ec471756b5aac17376fe0a0c0d6) Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Avoid crashing with unparented accessibilityAllan Sandfeld Jensen2022-09-141-6/+6
| | | | | | | | | | | We do not get the automation id in this case then, but we have run without it before. Fixes: QTBUG-106588 Change-Id: Ib65f1aaff1d7ef260df56c7de7198b0679e0d644 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a79afbeaa0d5a0fe1152c221c063cf8e7304ed73) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Make opengl module name check more relaxedMichal Klocek2022-09-141-1/+1
| | | | | | | | | | | | The module filename can be different depending on windows platform for example "openglsw32.dll", "openglsw32.DLL", "openglsw32". Make check more relaxed. Fixes: QTBUG-106095 Change-Id: I0abd5f61df2a44b395c8a81511e4d3bc807e1537 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit db4d4d1edae7351fab777d492ed1004eb293f27e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix using QNetworkReply with custom url schemesAllan Sandfeld Jensen2022-09-131-1/+8
| | | | | | | | | | | | | | Sequential QIODevices are allowed to report atEnd() when they have no data to read, but add more data later. To avoid a regression with our own tests, treat a read error from a sequential device at end, as end-of-data. Fixes: QTBUG-106461 Change-Id: Iac1233e6daa978c827c37a7fd3131e2fce764111 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit aefd389bfdf7efcaf787d2cfb4683d7018cb377c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix busy waiting on streaming QIODevice'sAllan Sandfeld Jensen2022-09-101-5/+6
| | | | | | | | | | | The writable watcher will trigger all the time if we use automatic arming, instead we need to arm it manually when it is needed. Task-number: QTBUG-106461 Change-Id: Ia381db338adb1b1994d1da9b50c6d6ff542ea3e5 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit b30559565cb91501baddea495362101341a0aa22) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove qLcNav logging category from qquickpdfpagenavigator.cppShawn Rutledge2022-09-101-2/+0
| | | | | | | | | | | It's not used in QQuickPdfPageNavigator, and causes a linker warning about a duplicate symbol, especially in static builds. Fixes: QTBUG-106361 Change-Id: I128c10a1aead1aa9a761dc091c626488fc195d12 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 1d98fad6ea411a00812d52bb7119f651b499d7a9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PdfSelection: mark read-only for IM to avoid showing virtual keyboardShawn Rutledge2022-09-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | The Qt::ImReadOnly query enum is new in 6.2 (qtbase c80f262258b7846bf199887bcfdbb6dcfda6ad6f and aae4d52cbb79c61161271473ab5c3a1ba1086e01). It was added to the switch statement in 79d04aa9e3e9aa84d7378260519f9e9a6759dc41 but needs to return `true` to mark this Item as read-only, so that the keyboard will not open when it gets focus. The menu still gets populated with Select and Select All on long-press, and then Copy after a selection is made. That's all we need. The qt_im_readonly property was a sort of private API for Qt 5, and should no longer be needed (albeit the implementation is still in Qt 6 so far). Task-number: QTBUG-83811 Fixes: QTBUG-106358 Change-Id: I677363be545d07884dffdfc10d6fdbd488cf2cf0 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit b37d29b5f3c3572c6f3348545d23d8e42362311c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix typo in CMakeList.txtMichal Klocek2022-09-091-1/+1
| | | | | | | | | | | | | Fix typo, which slipped through testing. This covers the case when gn is already built (external project) and user reconfigures qtwebengine after removing cache (for non-prefix build) Task-number: QTBUG-106406 Change-Id: Ic0d105ff7d50a07f3729cb0cd095d2a8daf6911b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 08692e7d628e56e34fdc84e9da574d78ce8ecf1d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: Mark all QPdfLinkModel docs internal for nowShawn Rutledge2022-09-081-8/+8
| | | | | | | | | | | | So far we only have QML API, but we don't have a public header yet; so this class should not appear in public docs. Task-number: QTBUG-77511 Change-Id: I1f0f5c6b625597a73a67a3019b9f8271ce9cea9e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 95a3bfb9053c44b6fbf558b882ab28bdb3239786) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PdfSelection: check m_document before accessingShawn Rutledge2022-09-071-0/+12
| | | | | | | | | | | The document is a property that the user needs to bind. If initializing it has been neglected or delayed somehow, we shouldn't crash. Fixes: QTBUG-106355 Change-Id: I8e99b4bb84d868b694886058d56166fb3c4eabff Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit c1dc52321cda894771bbbc38be92ae852281e26a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Pdf[Multi|Scrollable]PageView: enforce zoom limits, don't get stuckShawn Rutledge2022-09-062-6/+8
| | | | | | | | | | | | | | | Handlers must not get disabled because the zoom range is beyond limits: rather, let PinchHandler's minimumScale and maximumScale enforce them. So far, PdfMultiPageView and PdfScrollablePageView do not have other ways of zooming (like a WheelHandler for control-mouse-wheel), so we don't need BoundaryRule. But the limits applied by PinchHandler are "hard" limits: you bump up against them instantly, with no easing curve. Fixes: QTBUG-104769 Change-Id: I4eb785e572816d1b80ea9c8f4f5b9c925594afac Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit d3bd8891b578c37fa3a88e0b93c314f25f789c75) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Copy gn in case for crossbuildMichal Klocek2022-09-061-0/+17
| | | | | | | | | | | | | In case of non prefix builds gn should be copied so it can be detected by cross-build from host qt. Change-Id: I02937fc7101c249b22cfa06275c508410f888248 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 84eaa29b881d25f1b7588187b5b74a9da133d430) (cherry picked from commit 512832e58a228a108606aa6cdb7bae8c77fac0ef) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix wrong scalingMartin Negyokru2022-09-023-28/+40
| | | | | | | | | | | | Use inherited screen_infos_ in RenderWidgetHostViewQt. Handle multiple screens. Fixes: QTBUG-105955 Fixes: QTBUG-105960 Change-Id: I6e5d04e29ff1e8bb9936cc3103960f27895904d6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit ecfa2f0973680332d6ab04adce471f4dd85f1422) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>