summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Update ChromiumMichael Brüning2022-08-231-0/+0
| | | | | | | | | | | Submodule src/3rdparty 9a838524..1df1a4d9: * [Backport] CVE-2022-2860: Insufficient policy enforcement in Cookies * [Backport] CVE-2022-2857: Use after free in Blink * Disable accelerated_2d_canvas for Intel drivers on Windows Task-number: QTBUG-105327 Change-Id: Iada270db27e1de432d6d918ec87a2ce9e04a5238 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix build with Qt versions < 6.3.0Michael Brüning2022-08-111-0/+4
| | | | | | | Change-Id: I754bce59da6d735c3a3adb4086b4d08e75c50b3a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 772d86b92bba4c1e63fbb4c555e9a6789991b68c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add constructor to WebKeyboardEventMartin Negyokru2022-08-091-9/+12
| | | | | | | | | | | WebKeyboardEvent type is needed for devtools protocol. Fixes: QTBUG-105082 Fixes: QTBUG-86871 Change-Id: I17e9b38cae73cac606862cf2361ee878c9ae97ba Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit f2f6e3a3b2e2d30140d9e3d2b21d1eed79f1879a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-08-092-1/+1
| | | | | | | | | | | | | | | | | | | Submodule src/3rdparry 9353f70a..9a838524: > [Backport] Security bug 1333970 > [Backport] Security bug 1343889 > [Backport] CVE-2022-2614: Use after free in Sign-In Flow > [Backport] CVE-2022-2618: Insufficient validation of untrusted input in Internals > [Backport] CVE-2022-2612: Side-channel information leakage in Keyboard input > [Backport] CVE-2022-2613: Use after free in Input > [Backport] CVE-2022-2624: Heap buffer overflow in PDF > [Backport] CVE-2022-2610: Insufficient policy enforcement in Background Fetch > [Backport] CVE-2022-2615: Insufficient policy enforcement in Cookies > [Backport] Security bug 1336014 Fixes: QTBUG-104639 Task-number: QTBUG-105327 Change-Id: I0fa5f068ca49e945449f60a4709b6f94feab3178 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix single process crash when proxy pac is usedMichal Klocek2022-08-061-1/+9
| | | | | | | | | | | | | | | | | | | Using proxy v8 resolver ends up in race condition when render thread tries to evaluate extension handle and v8 proxy resolver evaluates proxy pac script. Disable v8 proxy resolver for single process mode. Issue tracked upstream http://crbug.com/474654 Modify the unit test to catch the crash case, the test loads now network resource but it does not matter as we do not check for failure or success. Fixes: QTBUG-104436 Change-Id: Id3221d1b8b3896f0ced3d0cd7cb9d9eceeb929cc Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 1b6633d1ce86eaf43b750a03a785793512e487ed) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add environment variables to specify resources and locales locationsPeter Varga2022-08-052-45/+122
| | | | | | | | | | | | | - QTWEBENGINE_RESOURCES_PATH for resources - QTWEBENGINE_LOCALES_PATH for locales (translations) Fixes: QTBUG-88595 Fixes: QTBUG-78646 Task-number: QTBUG-103760 Change-Id: I9208ab8cc154d89eae6053eb3c50f007be5ffbb1 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit f63f7903c9400b772f9566bc4b8c7d8e527314a9)
* Update ChromiumMichal Klocek2022-08-041-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 5f975374..9353f70a: * Fixup for [Backport] CVE-2022-2156 * [Backport] CVE-2022-27406 * [Backport] CVE-2022-27405 (2/2) * [Backport] CVE-2022-27405 (1/2) * [Backport] CVE-2022-27404 * [Backport] Security bug 1287804 * [Backport] Security bug 1340654 * [Backport] Security bug 1334864 * [Backport] Security bug 1340335 * [Backport] CVE-2022-2480 : Use after free in Service Worker API * [Backport] CVE-2022-2477 : Use after free in Guest View * [Backport] CVE-2022-2011: Use after free in ANGLE. * [Backport] CVE-2022-2294: Heap buffer overflow in WebRTC (2/2) * [Backport] CVE-2022-2294: Heap buffer overflow in WebRTC (1/2) * [Backport] CVE-2022-2295: Type Confusion in V8 * [Backport] Security bug 1333333 * [Backport] Dependency for security bug 1333333 * [Backport] CVE-2022-2160: Insufficient policy enforcement in DevTools * [Backport] CVE-2022-2162: Insufficient policy enforcement in File System API * [Backport] CVE-2022-2158: Type Confusion in V8 * [Backport] CVE-2022-2156: Use after free in Base * [Backport] Make base::UnguessableToken::operator!= constant time. * Rewrite array for token/unguessable token Fixes: QTBUG-104636 Task-number: QTBUG-104639 Change-Id: I0612c23bea679a634e30c9f1ce28529e7990fc6d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumMichael Brüning2022-07-062-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 660d61d9..5f975374: > Fix broken bundled zlib for cross compilation > FIXUP: Fix url_utils for QtWebEngine > Bump V8_PATCH_LEVEL > [Backport] Security bug 1316578 > [Backport] CVE-2022-2008: Out of bounds memory access in WebGL > [Backport] CVE-2022-2010: Out of bounds read in compositing > [Backport] CVE-2022-1876: Heap buffer overflow in DevTools > [Backport] CVE-2022-1873: Insufficient policy enforcement in COOP. > [Backport] CVE-2022-1866: Use after free in Tablet Mode > [Backport] Security bug 1318610 > [Backport] CVE-2022-1867: Insufficient validation of untrusted input in Data Transfer > [Backport] Security bug 1306751 > [Backport] Security bug 1306968 > [Backport] Security bug 1303552 > [Backport] CVE-2022-1855: Use after free in Messaging > [Backport] CVE-2022-1857: Insufficient policy enforcement in File System API > [Backport] CVE-2022-1854: Use after free in ANGLE. > [Backport] CVE-2022-1853: Use after free in Indexed DB > [Backport] Dependency for CVE-2022-1853: Use after free in Indexed DB > Make sure we do not compile minizip from 3rdparty > Fix use_system_freetype Task-number: QTBUG-104636 Change-Id: Iddd74315f5efc429c9d910096c5e67d803696777 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix method checkAllan Sandfeld Jensen2022-06-241-1/+1
| | | | | | | | | Detected by codechecker. Change-Id: I8814180ef6bd591ed3e95fc4b4abff3454f10bdf Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 51faba3af76f4a7c67c769a5ab0be17c9aa54f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Find modern Chrome, Chromium and Firefox CDM modulesAllan Sandfeld Jensen2022-06-221-5/+48
| | | | | | | | | | The default download location has moved again, but we can now also use firefox CDMs. Task-number: QTBUG-104238 Change-Id: I7ee581fa63e50df970acb31ea6d3f67d332aef59 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit b99042fb839021a0a3d2fe0cac7ac3899c4acbba)
* Minor. Remove superfluous checkMichal Klocek2022-06-221-4/+0
| | | | | | | | | Same check is two lines below. Change-Id: If9a76ec29f7667d940f2cff231bb30facd621908 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit ddb5528bc3f93f1d09c0e4fc33026ced08edf147) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update docs and do not recommend to use msys2 or cygwinMichal Klocek2022-06-221-0/+2
| | | | | | | | Task-number: QTBUG-102633 Change-Id: I412c10cea98d87ffbbac40baa032261dca12dbf0 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 89eb58b28e856663cdc1ad59d5fdd60115e801ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not use the native dialog to show the color picker on macOSMichael Brüning2022-06-201-0/+4
| | | | | | | | | | | | | With the native dialog, there were either problems with the modality when using it asynchronously or with the life cycle when using it synchronously. Not using the native dialog avoids these problems. Task-number: QTBUG-102099 Change-Id: Icb9a9afda48c47558b8e8ecb6d89adc0961d5063 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 51b024c53ceb43febbded3c14974e9d8f75c1c11) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix accessibility bounds with HighDPI scaling modesAllan Sandfeld Jensen2022-06-181-0/+2
| | | | | | | | | | Disable chromium's uses of zoom for device scale factors. Fixes: QTBUG-101769 Change-Id: I9f2ae7122b59f5fbf8ffcaf8a92940792f4860c9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit c68fa97934db12486bb12e37d1c70963ded1fd38) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not compile v8 for pdf by defaultMichal Klocek2022-06-151-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>
* Protect against default profile being deleted before its pagesAllan Sandfeld Jensen2022-06-144-3/+13
| | | | | | | | | | Can really only happen in QML on exit. Task-number: QTBUG-99445 Change-Id: I1a04d57b6c4c40ae264b5519d2e41c57bca79a61 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 45c217646e3742070af15267df8fdb40c2a6c81a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix printing/no-printing buildsMichal Klocek2022-06-092-1/+6
| | | | | | | | | | If no 'printing' we should also disable 'cups' otherwise it asserts in gn. Moreover we use cups on macos and linux only. Change-Id: Id0c9b34746204e985032d7c42868aeb8567b8e8f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 3f5b5213d42376470274f0e3aaa51731f0d2552a) 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>
* Fix build without openglAllan Sandfeld Jensen2022-06-091-1/+1
| | | | | | | | Task-number: QTBUG-104057 Change-Id: I4d6335acf646e574c6f7df6747a0ed3198f206d1 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 64aea37067507c50178ee03eee9ad16a55bb7efe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not reset favicon for same document navigationsPeter Varga2022-06-081-4/+4
| | | | | | | | Fixes: QTBUG-103735 Change-Id: Iee0c09cde16a825097b7c1c014655476989922c0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c5de1b21232c7114b27e42fa8c15cb323d256e47) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix sandbox on framework buildsMichal Klocek2022-06-023-10/+22
| | | | | | | | | | | | | On framework build we use bundle to get qt path. If build time bundle is picked than build path should be allowed file access. Moreover we really should be able only to access bundle path and not prefix path as resources and locales are in the webenginecore bundle. Change-Id: Ic7d49ddf9c31dce52f59b38a75d558c875f15dae Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 62484d2b18eaec382b68b64d89e9b1bfea34321c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update ChromiumMichael Brüning2022-06-022-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 5cd4e9af..660d61d9: > [Backport] Avoid using FreeType 2.11.0 COLRv1 headers > Minor. Use FilePath directly for qt sandbox path > Fix angle build after a056b2278a97 > [Backport] CVE-2022-1494: Insufficient data validation in Trusted Types > FIXUP: Disable alternate window station of Windows sandbox > [Backport] Security bug 1298867 > [Backport] Security bug 1312563 > [Backport] CVE-2022-1638: Heap buffer overflow in V8 Internationalization > [Backport] CVE-2022-1639: Use after free in ANGLE > [Backport] CVE-2022-1636: Use after free in Performance APIs > [Backport] CVE-2022-1493: Use after free in Dev Tools > Find fontconfig using pkg-config > [Backport] Security bug 1296334 > [Backport] Security bug 1307223 > [Backport] CVE-2022-1492: Insufficient data validation in Blink Editing > [Backport] CVE-2022-1498: Inappropriate implementation in HTML Parser > [Backport] CVE-2022-1497: Inappropriate implementation in Input > [Backport] CVE-2022-1487: Use after free in Ozone > [Backport] CVE-2022-1486: Type Confusion in V8 > [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] CVE-2022-1138: Inappropriate implementation in Web Cursor. > Fix no-printing builds on mac > Minor. Add defined to checks > FIXUP: Fix jumbo build > [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] Security bug 1306507 > Fix mac toolchain python linker script call > Workaround MSVC2022 ICE in constexpr functions > [Backport] CVE-2022-1364: Type Confusion in V8 Task-number: QTBUG-103032 Task-number: QTBUG-103035 Task-number: QTBUG-103036 Change-Id: I19b85bdda74d96dc597733c8dc996ab92967ee31 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiomKai Köhne2022-06-013-3/+3
| | | | | | | | | | | | Using REQUIRED as a prefix instead of suffix works better with OPTIONAL_COMPONENTS, and is also the order in the CMake manual. Task-number: QTBUG-98867 Change-Id: I57928fb56e2a154d91873dc869f6d314a7ea5fce Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit b8bfa5352d0c987f67e4ceba8b45a92551580afc) 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: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 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-186-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 software backend detectionAllan Sandfeld Jensen2022-05-181-1/+21
| | | | | | | | | | | | QSG hasn't parsed and set the backend yet, so we do need to duplicate the logic it will use later to make a proper detection. Fixes: QTBUG-103372 Change-Id: I542ef9f52dd2725d3ff6e17f9142786e43425ebd Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 6fa8836d430d59f2350012b54f57bc246b2aa18a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtWebEngine: replace qSwap with member-swap where possibleMarc Mutz2022-05-173-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>
* Fix touch input for widget's delegate for html popupKirill Burtsev2022-05-132-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-131-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>
* 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>
* 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>
* doc: begin adding docs for MultiPageView component and exampleShawn Rutledge2022-05-044-3/+230
| | | | | | | | Task-number: QTBUG-81560 Change-Id: I062e022a97c146e9a746b6d6358868bfe0c0a7d7 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 8018a4cbce8f01add2aa011b3448516cb6ea92ef) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* doc: Add docs for PdfScrollablePageView and PdfPageViewShawn Rutledge2022-05-042-6/+433
| | | | | | | | Task-number: QTBUG-81560 Change-Id: Ib91da92942311f65e3a2a40eb08c5a7f053419b4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 533b8f6d0c9bdd7f9b4eec6db5b37202247edd66)
* Clean up documentationAllan Sandfeld Jensen2022-05-046-13/+14
| | | | | | | | | Make naming consistent, and fix a few links Change-Id: I5b42ba92f8747d6bd86b1e84f74f6b15c80f444c Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 57a38f05d9a0898bffa077a5caaf48fde370cb02) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix leak if loader error is seen firstAllan Sandfeld Jensen2022-05-041-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) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix missing dictionaries in case of user bundlesMichal Klocek2022-04-301-0/+7
| | | | | | | | | | | | | If user creates bundle dictionaries should be copied to Resources in the bundle. Note our spellchecker unit test only covers non bundle case. Fixes: QTBUG-100799 Change-Id: I5d4c0f7c1c21d35601a6e01dec1ecdb43202469f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit ef86f293d2d3778301536da1548884e9e2ca2093) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support cross-compilation on macOSMichal Klocek2022-04-305-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-04-261-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) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix fatal error in getCurrentKeyboardLayout()Martin Negyokru2022-04-251-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>
* 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 documentation of getter functionsAllan Sandfeld Jensen2022-04-232-24/+66
| | | | | | | | | | | Add documentation file in doc dir, and add a related header as a documented header file. Fixes: QTBUG-102743 Change-Id: Ibcbc39affe1915b0606e879a9ec5a1189f2d5aea Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a6efb817b3596131f1885d8f7b2d4d760141b169) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix granted file access after local/remote access cleanupAllan Sandfeld Jensen2022-04-141-3/+16
| | | | | | | | | | | | 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) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Avoid crashing on context free web actionsAllan Sandfeld Jensen2022-04-091-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>
* Do not store CF_HTML header in QMimeDataPeter Varga2022-04-091-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/+28
| | | | | | | | | | | | | | 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 build with libc++Qt Submodule Update Bot2022-04-071-0/+19
| | | | | | | | | | | | | Fix build with libc++ on linux by adding missing use_libcxx parameter. Check if re2 and poppler can be used as they use std::string in their api. Add compiler test to check that. Change-Id: I74bf79b8443ad470621c1a2e0c9dc768d4cca1f1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 288f60442fefa717dfc3c7587f1d480910b50874) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>