summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Add the git repo URL for the Qt PDF examples6.2Venugopal Shivashankar2022-10-111-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) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Pass archiver to gn buildMichal Klocek2022-06-091-0/+1
| | | | | | | | | | | User can override with env variable AR archiver for cross compilation, pass archiver from cmake for gn. Fixes: QTBUG-103578 Change-Id: I055d7403ecb829f4b1bbe57ec27c0bca7323484c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 09a4ad989c815a2aa0fb401011f1ccb50751be72) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix 'flaky' gn install stepMichal Klocek2022-06-091-0/+3
| | | | | | | | | | If gn is found in install path, still install it for qt host otherwise in case of reconfigure we never install. Change-Id: I154e2ead386d52006e2647297b6148170b8a85cb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 80878be4ed0003d996edc01827b5638459a818c8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not compile v8 for pdf by defaultMichal Klocek2022-06-041-0/+1
| | | | | | | | | | | | We shipped qtpdf for 5.15 without v8. Now it disables all the extra xfa features by default. Fixes: QTBUG-102394 Fixes: QTBUG-102951 Change-Id: Icd4784037f6db9b489d691c15d95e72563c16356 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 165bc962e81735efd7b45a1125c3a0d0c5ab9c8b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Update Platform NotesKai Köhne2022-05-301-4/+3
| | | | | | | | | | Remove references to Qt 5, qmake (as build tool for Qt), and Visual Studio 2017 only. Change-Id: Ied2de9de91693f167c5fb22f007c203bce18b543 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 3b4ed3123fde1f6e6d47b004cb5a4795b0d64387) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix local->remote user navigationAllan Sandfeld Jensen2022-05-261-3/+16
| | | | | | | | | | Specifically allow user initiated navigation of the mainframe. Fixes: QTBUG-103778 Change-Id: I4e3d6b4fb606bd0c3cf66e090fba3c97c8c535b4 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 2ba1f04b4589e5883a399b022b7795266c4d4646) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix leak if loader error is seen firstAllan Sandfeld Jensen2022-05-251-1/+6
| | | | | | | | | For some reason the proxied_loader_receiver can still be bound in this case. Change-Id: If0bbe181eca5de41e82eebaced412361fe12fb40 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ffb831d9896dcdd3d469fdbeee407d96d631dbda)
* Fix read-after-free on EGL extensionsAllan Sandfeld Jensen2022-05-244-16/+16
| | | | | | | | | Cache the read extensions as an std::string, since the returned C string may be not be permanent. Change-Id: I856b2b784ab4027da25996b2bf741b30cda10e05 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit fd2fc0d2a86f39d563720563555ca6319f8ab223)
* Keep page's zoom level on loading new urlsKirill Burtsev2022-05-166-8/+30
| | | | | | | | | | | | | Ammends d236c5a8a3. Zoom level was set as a temporal one, which is invalidated each time when a renderer process or widget are changed (on new navigation, for example), so it needs to be reapplied. Fixes: QTBUG-101030 Change-Id: Iecff9686fbe2b79e99b46f67cab92f66127be085 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 1e27d42a8071532b6cc30a9bcc5f700edc56952a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix touch input for widget's delegate for html popupKirill Burtsev2022-05-122-6/+20
| | | | | | | | | | | | | | | | | | | | | | Earlier fix cf8bc1899a introduced the logic, where all system synthesized mouse events are ignored. But after c56169f7a1 this is undesired since for widget with Qt::Popup flag touch input is ignored by QWidgetWindow, and input is expected to be delivered to popup as synthesized mouse event (either synthesized by Qt or for capabable devices by system). So allow system synthesized mouse events to let through for popup. Synthesis by Qt is suppress automatically for accepted touch event, it's only system event are still delivered unconditionally, so still ignore them for widgets impl. Global ignore in core is not needed, since QQuickWidget ignores system synthesized events unconditionally. Fixes: QTBUG-79254 Change-Id: Ie8f55eb8b9c2677d8a98381effb3cb31d9388ac7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Martin Negyokru <negyokru@inf.u-szeged.hu> (cherry picked from commit 1f6495af6331f5504de9d3f7e43f5202345c7a8c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix touch input for html's popup in quick implKirill Burtsev2022-05-121-6/+8
| | | | | | | | | | | | | | | Ammends 292f573f4e. Now that touch events are forwarded to popup delegate also instead of synthesized mouse events, the bug with touch event being ignored became present. Also extend testing of touch events for html popups. Task-number: QTBUG-79254 Fixes: QTBUG-103217 Change-Id: I097a6617493355c7603fef8eb41025e299a6e809 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 9334feb682db6e6e35bc98dce377a091eb640438) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtWebEngine: replace qSwap with member-swap where possibleMarc Mutz2022-05-113-3/+3
| | | | | | | | | | | | | | | | qSwap() is a monster that looks for ADL overloads of swap() and also detects the noexcept of the wrapped swap() function, so it should only be used when the argument type is unknown. In the vast majority of cases, the type is known to be efficiently std::swap()able or to have a member-swap. Call either of these. As a drive-by, unify all member-swap()s to be noexcept. Task-number: QTBUG-97601 Change-Id: I9184cab0ed74a1b32d62cf7c83dc1f1b7814c784 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 99b81083ccee7e1bd28749b1066599670713cefe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QtQuick dependency to QtWebEngineMarco Bubke2022-05-101-0/+2
| | | | | | | | | | | QQuickItem is referenced as prototype but there is no dependency declared to QtQuick where it is defined. Change-Id: Ib024123b032fdadf3fe24a5a420b2c122d6594b7 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit c92314eecb1c6140c80ab232197d5bd0ddfa26fa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use qualified imports to avoid prototype loopsMarco Bubke2022-05-103-7/+6
| | | | | | | | | | | In the designer model we don't use import order to simplify the meta type system. There are only very few places where we get a prototype chain loop. In most cases qualified imports are used. Change-Id: If4baac38cabb7773f58c0d326806fd6fd5612a99 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ede8dbb5c31266a340f1ea2cfc59541876e80e0c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-05-091-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 463ed6fc..dd5f0796: > Bump V8_PATCH_LEVEL > Fix mac toolchain python linker script call > Fix angle build after 4faa15cf23 > Fix angle build with vulkan backend after 8c2f6fad > [Backport] CVE-2022-1483: Heap buffer overflow in WebGPU > [Backport] CVE-2022-1482: Inappropriate implementation in WebGL. > [Backport] CVE-2022-1479: Use after free in ANGLE > [Backport] CVE-2022-1477: Use after free in Vulkan > [Backport] Security bug 1292905 > [Backport] CVE-2022-1314: Type Confusion in V8 > [Backport] CVE-2022-1310: Use after free in regular expressions > [Backport] CVE-2022-1305: Use after free in storage > [Backport] CVE-2022-1138: Inappropriate implementation in Web Cursor. > [Backport] CVE-2022-0797: Out of bounds memory access in Mojo > [Backport] CVE-2022-0789: Heap buffer overflow in ANGLE > [Backport] CVE-2022-0796: Use after free in Media > Fix linking when cross-compiling arm64->x86_64 > [Backport] Security bug 1305234 > Fix cross-compilation arm64->x86_64 > Fix python calls > Workaround MSVC2022 ICE in constexpr functions > [Backport] CVE-2022-1364: Type Confusion in V8 > [Backport] Roll src/third_party/expat/src/ e976867fb..a28238bde (182 commits) > [Backport] Security bug 1304659 > [Backport] Security bug 1269999 > [Backport] Roll libxml from a46e85f6 to dea91c97 > [Backport] Roll libxml from bfd2f430 to a46e85f6 > [Backport] Roll libxml to bfd2f430 > [Backport] Roll libxml to 7279d236 Task-number: QTBUG-103033 Task-number: QTBUG-103039 Task-number: QTBUG-103037 Change-Id: I4d3b6899aebc374117c2a5d2521089f15f65f709 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Find CUPS for printing on LinuxAllan Sandfeld Jensen2022-05-071-1/+2
| | | | | | | | | | Just verify it is there. Fixes: QTBUG-100300 Change-Id: If7d13afd788086cab13bab471a4dc415fa470ece Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 70f9a3b0887dc633ee2efb218bee5625a0c4e7ae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support cross-compilation on macOSMichal Klocek2022-05-045-6/+8
| | | | | | | | | | | | | | | | | | | | | | | So far we only supported a cross-compiling with universal builds, however qmake also supports 'regular' cross compilation (by setting '-device-option'). This is semi-supported with qt-cmake as we need to provide additional configure defines like: * CMAKE_OSX_ARCHITECTURES=arm64 * CMAKE_SYSTEM_NAME=Darwin * CMAKE_OSX_DEPLOYMENT_TARGET=10.14 It might seem to be a far fetched issue, however in case of webengine doing the cross compilation for only one architecture allows to save compile times when testing only arm64 builds. Note we do not need to create gn toolchains for that case, however unlike universal builds it requires host qt build for tools. Change-Id: Ica8470fdd4cad4866c1470e0403ffd019eaf39a6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit ba74eaba11b2df9d6c2b23f7595e7bb1a03e911e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix navigation to non-local URLsAllan Sandfeld Jensen2022-05-021-1/+8
| | | | | | | | | They are passed in another part of the DropItem object. Task-number: QTBUG-102192 Change-Id: If52a88ce2688c25ea0edcc0d1e8f962f2cdd29dd Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 742e6786aeb500ef9bc850bf84803d5f388e3927)
* Fix granted file access after local/remote access cleanupAllan Sandfeld Jensen2022-04-301-3/+17
| | | | | | | | | | | We forgot to check for files specifically granted access to. This blocked a number of features including dropping local files. Task-number: QTBUG-102192 Change-Id: I5d34d9ba5351ec179df5896e64cc95c5481c7dc2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 9a44b6ea5c60f83d841881b5ddbbaba79228fdea)
* Support setting page to nullptr to unsetAllan Sandfeld Jensen2022-04-231-0/+3
| | | | | | | | | Worked in 5.15, and now crashed. This patch returns 5.15 behavior. Change-Id: Ib50dca96d9e90312cd2ee55aaf3205f5b848dd15 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit b76a7dd5eabc04c06494769ccae685cf581f52c4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix fatal error in getCurrentKeyboardLayout()Martin Negyokru2022-04-131-19/+6
| | | | | | | | | | | | | | | | FATAL:xkb_keyboard_layout_engine.cc(640)] Keymap file failed to load: dk(polytonic) Remove unnecessary tokenization of XKB layout. Parsing of layout configuration is already handled by XkbKeyboardLayoutEngine::ParseLayoutName(). Fixes: QTBUG-101201 Task-number: QTBUG-92971 Change-Id: Ia4f09ed99eb82064a3b12e14eda69a6e0e12b0dd Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 69cd28b820ba8f8c578591b98f3ad88b00efcef3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichal Klocek2022-04-141-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pulls in following patches: * d1d0e8553c7 [Backport] CVE-2022-0610: Inappropriate implementation in Gamepad API * 07a3b1fe773 [Backport] Security bug 1292537 * 77fe270126d [Backport] CVE-2022-0290: Use after free in Site isolation * bb95e9670dc [Backport] CVE-2022-23852 * cdca6b3cecc [Backport] CVE-2022-0460: Use after free in Window Dialog * 6b696298322 [Backport] Security bug 1289394 * b33b4266df8 Bump V8_PATCH_LEVEL * d7e393c6569 [Backport] sandbox: build if glibc 2.34+ dynamic stack size is enabled * e986d64df33 Fix clang set-but-unused-variable warning * 6e8a0e618fc [Backport] CVE-2022-1096 * 1103459515c [Backport] CVE-2022-0971 * ec4a16dc944 Add crossbuild support for x64/x86 on macos-arm64 * 1518d45cb5d Fix angle build after 2b997ac64c * 15de5a38895 [Backport] Dependecy for CVE-2022-0975 * c952af0b13f [Backport] CVE-2022-0975 * 1cf332f844d [Backport] CVE-2022-0978 * 40371a7272e [Backport] Secuirity Bug 1296876 * 0336deeef1a [Backport] CVE-2022-1125 * 463ed6fcd05 Add missing current_os for new cross compile toolchains Change-Id: Ib6b0d7edcdd65d4dc2efbdb0b6b4ec91096db7f6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Do not store CF_HTML header in QMimeDataPeter Varga2022-04-081-1/+10
| | | | | | | | | | | | | | | | | | QMimeData doesn't handle it. Keep "<html>\r\n<body>\r\n<!--StartFragment-->" and "<!--EndFragment-->\r\n</body>\r\n</html>" tags because they are required for proper pasting of an HTML fragment on Windows. Fixes: QTBUG-100806 Task-number: QTBUG-92539 Change-Id: I9e8a2f9592e56b9acc011b7640e589c43b558543 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 91ef7c19f47a97a82a2f143c99dfd3b885d65729) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Resolve status code for http response with failureKirill Burtsev2022-04-083-13/+29
| | | | | | | | | | | | | | All non-default https status codes are hidden under net::ERR_HTTP_RESPONSE_CODE_FAILURE error of network stack. Handle successful load case and set the real http status code for error. Also set localized load error description only for http codes. Fixes: QTBUG-46860 Fixes: QTBUG-61100 Task-number: QTBUG-94963 Change-Id: I81e083441d1814fb530f39ea3da1c4ef52b7da59 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit a4e32eac5cb858ffa5668b01cef10cc42854713b)
* Fix location of WebEngineProcess on build machines for framework buildsMichal Klocek2022-04-072-6/+17
| | | | | | | | | | | | | | | | | | | | | | For some unknown reason we had built qtwebengine process in 'libexecdir' and installed later into 'libdir' for module frameworks builds. Unfortunately this can not work if you run tests on same build machines as bundle for webenginecore will be loaded form build dir and not form installation dir resulting in load of webengineprocess form incorrect 'libdir'. Set simply correct build paths, so they match install ones: framework build uses 'libdir' and non framework one 'libdirexec'. Remove bogus copy line as it is no longer needed for super builds. Copy resources locally to build tree so local build tree test can use them during execution. Change-Id: Ib61ac5659330386ca43c9e403d5fe4d5e214158f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit ef685c981d4245b7c704a9d566b05db064756c1f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add static builds for qtpdfMichal Klocek2022-04-043-3/+46
| | | | | | | | | | | | | | Add 3rdparty installed headers so static builds can use bundled qt libs. Fix static gn and archiver/librarian setup. Task-number: QTBUG-87154 Task-number: QTBUG-88614 Change-Id: Iad7682da92b558b500140f415acc0bc9c9a1c22e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 99d77b9f1eed817cb3eae68d9e7224a01d55d656)
* Fix include guardAllan Sandfeld Jensen2022-03-251-2/+2
| | | | | | | Change-Id: Iedb95f6c7128834a701e4c5549dd0fec44b0ee8f Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 038c86c6d8c85e0a101b8d2b7fc35a995c8d1d40) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Avoid crashing on context free web actionsAllan Sandfeld Jensen2022-03-251-15/+15
| | | | | | | | | | | If a web action that depends on a context is called, do nothing instead of crashing. Fixes: QTBUG-101724 Change-Id: I7a0040a58e9dc7fa14f0cae71cf1bcd086b61c54 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit e8e381119ca5b08add50d13ab9d275d9ab55471c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QPdfView: scale page rendering according to devicePixelRatioShawn Rutledge2022-03-191-2/+2
| | | | | | | | | | On high-dpi screens we want the rendered pixels to match device pixels. Fixes: QTBUG-86948 Change-Id: I4879adc0aeb001750d42abc1e7d50ca3f11a5fe8 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 931e1be35058e43552963510f858766683cbb310) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix wrong assumption about focus in/out event deliveryMichal Klocek2022-03-182-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 2947d79d assumption was made that we never get focus in event for popup reason. Unfortunately this is not true as simply creating window menu and switching between webengineview will trigger the issue. Moreover, focus in and out events with popup reason do not mean change of focus, as in qtbase: if (QWidget *fw = active_window->focusWidget()) { if (fw != QApplication::focusWidget()) { fw->setFocus(Qt::PopupFocusReason) } else { QFocusEvent e(QEvent::FocusIn, Qt::PopupFocusReason); QCoreApplication::sendEvent(fw, &e); } } Therefore it is safe to ignore focus in/out events with popup reason. Note that the fact that ASSERT got not triggered for context menu is due to another race condition issue in qquick event stack delivery. This commit amends 2947d79d8210a7ae4ce2bc02e058628e66011be3. Fixes: QTBUG-101706 Change-Id: I3e761fe5d8054aed72461eba7981c69755877d1b Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 0625a1e16b8698d9c344548e4e929fb385b6a542) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QWebEngineLoadingInfo: Fix include conventionFriedemann Kleint2022-03-161-1/+1
| | | | | | | | | Amends da019632bfc0227e2d0d0cc676a80a352fc27a62. Change-Id: I22dce54dca802d96aec2f4cca68df0330d10fede Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit d4927a526dfd992ac5ffe053d9e63e8581c2a8eb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add userScript docs for qml landMichal Klocek2022-03-115-3/+238
| | | | | | | | | | | | | | | WebEngineScript docs were missing after moving classes to core. Moreover we changed WebEngineScript to be a qml value type and we introduced WebEngineScriptCollection to mirror C++ class. Add the documentation for WebEngineScript, WebEngineScriptCollection and WebEngine.script() method. Task-number: QTBUG-100404 Change-Id: Ifed1bd1fa398a8634df0dc1bd44111e1a09ded04 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 34f509a0a2059c54f9217c5a3dd8e3681bcc0964) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add test for blocking of remote contentAllan Sandfeld Jensen2022-03-101-2/+1
| | | | | | | | Task-number: QTBUG-50686 Change-Id: Ie176bece1a44a6df608646e91171d02ceeea7e8f Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit b8603c148c6cd53bdd82d0b712971cfc1b747780) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* CMake: Fail gracefully when using an unsupported CMake versionAlexandru Croitor2022-03-051-1/+3
| | | | | | | | | | | | | | | | | | | Previously if qtwebengine was configured with a CMake version lower than 3.19, CMake would exit with a fatal error saying the version is too low. Now the CMake version check is delayed to the configure summary which changes the hard error into a build time warning instead, just like with all the other repo requirements. An additional cmake_minimum_required call is used to require all 3.19 behaviors (upgraded policies) once configure establishes that the CMake version is new enough. Change-Id: I03a20ae62ce2dcee23e5615241c6c97a86df4d2f Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 0332065357a5f65bb43d113f99a7138d0bc65261) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-02-281-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 83a7ccec..e55302f0: > Fixup [Backport] Security bug 1276331 > [Backport] CVE-2022-0609: Use after free in Animation > [Backport] CVE-2022-0608: Integer overflow in Mojo > [Backport] CVE-2022-0607: Use after free in GPU > [Backport] CVE-2022-0606: Use after free in ANGLE > [Backport] CVE-2021-4066: Integer underflow in ANGLE > [Backport] Security bug 1261415 > [Backport] Security bug 1274113 > Fixup for CVE-2022-0289 > [Backport] Security bug 1268448 > [Backport] CVE-2022-0464: Use after free in Accessibility > [Backport] CVE-2022-0470: Out of bounds memory access in V8 > [Backport] CVE-2022-0456: Use after free in Web Search > [Backport] CVE-2022-0293: Use after free in Web packaging > [Backport] Security bug 1271747 > [Backport] CVE-2022-0468: Use after free in Payments (2/2) > [Backport] CVE-2022-0468: Use after free in Payments (1/2) > [Backport] CVE-2022-0461: Policy bypass in COOP > [Backport] CVE-2022-0459: Use after free in Screen Capture > [Backport] CVE-2022-0306: Heap buffer overflow in PDFium > [Backport] Security bug 1212957 > [Backport] Security bug 1276331 > [Backport] Security bug 1280743 > [Backport] CVE-2022-0310 and CVE-0311: Heap buffer overflow in Task Manager > [Backport] CVE-2022-0305: Inappropriate implementation in Service Worker API > [Backport] CVE-2022-0291: Inappropriate implementation in Storage > [Backport] CVE-2022-0289: Use after free in Safe browsing Task-number: QTBUG-98523 Task-number: QTBUG-99719 Task-number: QTBUG-101052 Change-Id: I0c6b86e83d22e1f163144acc9129deb4d87f7caf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 2982be995879ef074deb9b10493047eecd9deb00) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Check for loaded opengl library in case-insensitive mannerMichal Klocek2022-02-281-1/+1
| | | | | | | | | | | | | | After a14f2d59141e in qtbase library returned by GetModuleFileName can be "opengl32sw.dll" or as in ci "opengl32sw.DLL" as file extension is filled now by the winapi function. Make comparison case insensitive. Fixes: QTBUG-101084 Change-Id: I0816bbef21be40a786246ae9d43f031c5487a4f9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 1a50992c2bb56825ab085b8d8343e1effc8a3e8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QML test for basic profiles and fix the docs accordinglyKirill Burtsev2022-02-181-10/+11
| | | | | | | | | | Amends d0ff107c00. Ensure default values for profile settings match the docs. Also fix doc's issues after off-the-record toggle to off by default. Change-Id: I558a77dbec82d7f2b335b1a2ceca74ab66a1a6e9 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit f34292d147bfde094d8ec4a58f7b0e5f77a1fd0b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Minor. Fix context logMichal Klocek2022-02-171-2/+2
| | | | | | | | | | Log context before initialization as it can fail/crash and we do not see what failed. Change-Id: Ib47906c25bf8fb55c6c043ba5fadce9b354a87fc Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 3ddc6f951120fcbde903e650245849bde554b455) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix using system libxsltAllan Sandfeld Jensen2022-02-121-0/+4
| | | | | | | | | | | The webengine-libxml settings should set both use_system_libxslt and use_system_libxml Fixes: QTBUG-100500 Change-Id: I1c731530a56e0ca9a49b91e1d6e095d8b416dd8d Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 18523483945756e786f5d6e82cb00be2defd302d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Correct documentationAllan Sandfeld Jensen2022-02-101-2/+2
| | | | | | | | | WebEngine was first in 6.2 Change-Id: Id8e6e438e5f4cfd7b28ed8f821f503125033ae62 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit bb3d7e528b27282727aba2de68d8630a24b2856b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve local scheme access rulesAllan Sandfeld Jensen2022-02-116-43/+57
| | | | | | | | Task-number: QTBUG-96849 Change-Id: Ieb24da12a61e5e37b29ccf2d1a11b7bd863b842e Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 3071de1e07be28d763164a037d946281146bf31d) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumAllan Sandfeld Jensen2022-02-111-0/+0
| | | | | | | | | | Submodule src/3rdparty 30c22c6ed..83a7ccecb: > Allow accessing file protocol from protocols with local-access > Add allow_remote_access_from_local_urls setting > [Backport] Fix wrong mipmap sampling option for Medium filter quality Change-Id: I49222814336403507fdb76056c44ceb6fc39f97f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix crash on WebEngine(View|Profile).userScripts.collection getKirill Burtsev2022-02-1011-21/+180
| | | | | | | | | | | | | | | | To create a javascript list on 'collection' method qml engine is needed for a qml scope, but it's only available for objects, which are created by the QML Engine itself. The only object in hierarchy of classes is an actual WebEngineView, so get it from there on collection init. Also implement delayed initialization of scripts collection for the usage of default profile through WebEngine singleton, and for the reason that it's not really needed until really asked by user code. Fixes: QTBUG-96597 Change-Id: I61e76652a5d0fd5609070fd541816503908f2dc8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit f5fbc34fc16fc9c6e7f7e8bbbf60f5b343b9466d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QQuickPdfSelection: Fix division by zeroPeter Varga2022-02-082-1/+6
| | | | | | | | | | | | | | | | | | | QQuickPdfSelection::m_renderScale is used for division in QQuickPdfSelection::updateResults(). Add warning message to setRenderScale() and ignore the new value if it is zero. Also avoid setting PdfSelection.renderScale to zero in PdfScrollablePageView. The division caused an assert: ASSERT: "divisor < 0 || divisor > 0" in file qtbase/src/corelib/tools/qpoint.h, line 299 It was reproducible with the pdfviewer quick example. Change-Id: I31e08a9a28392fcc132470c8d94af1307447565a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 4f7b7995552b0220a9e431266e0119cd03a233cf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtPdf: Fix QML warning about usage of injected signal parametersPeter Varga2022-02-082-2/+2
| | | | | | | Change-Id: I4bbc3c1adf4ba2bc5cc8d71278e201ee05fc85bd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit f28c0e6680f3ef8ebb5e82d0fe375afbc6fb0fe9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QtPdf iOS build cmake changesMichal Klocek2022-02-072-3/+8
| | | | | | | | | | | Keeps cmake files in sync across branches, iOS build is not supported since ios changes are not backported from 94-based to 90-based. Task-number: QTBUG-88614 Change-Id: I7775c8b4d1554df497eb61fa6187f12c00b9032d (cherry picked from commit 8998563677e3f308083ba1c4c28efd6fe3d850f7) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Introduce gn complete static lib target for qtpdfMichal Klocek2022-02-073-4/+7
| | | | | | | | | | | | | | | | | | | | | | | With 6.x we have gn-cmake integration which allows now in case of static builds to switch gn target output to static_library with 'complete static' option instead of shared_library. This way we can avoid installing dependencies in form of internal static Chromium archives as it was done in 5.15 in case of static builds. Unfortunately 'complete static' option can not be used with QtWebEngineCore build as it will exceed 4Gb static archive limitation on Windows, however it will work fine with QtPdf. Note the qtbase 3rdparty static libs have to be still installed in case of qt static build, this patch only eliminates need for Chromium specific ones. Task-number: QTBUG-88614 Change-Id: I6fc4ce48c79a1631b013d0b29c190c62280f7304 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit 8e549e6e0ccd6078b3bd2e38b87337fd367dec55) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix accumulation of compositor-observer bindings for skia-on-glKirill Burtsev2022-02-045-11/+2
| | | | | | | | | | | | | | One of Compositor's derived classes, DisplaySkiaOutputDevice, was missing call to 'unbind' from its observer, leading to not releasing binding from global cache on destroy. Since unbind is done on destroy, remove all explicit calls to unbind from derived classes, and just do them in their base implementations. Ammends b117909825. Change-Id: I75c909eaa22ca1946ad67aa5093a8ee268c3562b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 16b2976e2c983cabe6011cd732e3ec46e3402d22) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Revert "Find GIO like qtbase does"Allan Sandfeld Jensen2022-02-031-2/+2
| | | | | | | | | | This reverts commit cce03b277715210d152d714a7f46ce7947c812d3. Reason for revert: Only working in 6.3 and dev Change-Id: I4fc1fcaabab6b5f21655980d67e77ed3a6b61181 Fixes: QTBUG-100435 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Do not list native spellchecker feature on LinuxAllan Sandfeld Jensen2022-02-021-2/+5
| | | | | | | | | | | And make the condition more general as it is available on both macOS and Windows. Fixes: QTBUG-100293 Change-Id: If430eaa219f910bc686dc0859178b52a0d0c3fb3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit a44849f7298de667dd0254f4a19546ffa40552be) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>