summaryrefslogtreecommitdiffstats
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* Check QT_OPENGL for softwareMichal Klocek2022-09-161-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>
* Avoid crashing with unparented accessibilityAllan Sandfeld Jensen2022-09-151-6/+7
| | | | | | | | | | 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)
* 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 schemesv6.2.6-lts-lgplAllan 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>
* Clean up includes in profile_adapterMartin Negyokru2022-09-072-8/+5
| | | | | | | | Fixes: QTBUG-106241 Change-Id: If345d774651b801362da67ff9d3f80867662b29d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 67a59057b107ed8bea4db818538f4d30b793a90e) Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* 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-091-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 ChromiumMichael Brüning2022-07-061-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>
* 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>
* Protect against default profile being deleted before its pagesAllan Sandfeld Jensen2022-06-143-3/+11
| | | | | | | | | | 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>
* 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-021-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-011-1/+1
| | | | | | | | | | | | 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-184-2/+17
| | | | | | | | | | | | | 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-131-6/+0
| | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Clean up documentationAllan Sandfeld Jensen2022-05-043-8/+9
| | | | | | | | | 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-303-4/+5
| | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Fix location of WebEngineProcess on build machines for framework buildsMichal Klocek2022-04-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | 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>
* Expand documentation on the chromium versionsAllan Sandfeld Jensen2022-04-061-1/+4
| | | | | | | | | Mention runtime calls, and the file in sources. Change-Id: I30fd5581272caec4e24ecc9a3ced82b99803eae2 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit fb82b7c7c53ddfd9ec087d7766a4f177f71971f9) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>