summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPEAndreas Buhr2021-08-123-3/+3
| | | | | | | | | | | | | | Q_MOVABLE_TYPE was conceived before C++ had move semantics. Now, with move semantics, its name is misleading. Q_RELOCATABLE_TYPE was introduced as a synonym to Q_MOVABLE_TYPE. Usage of Q_MOVABLE_TYPE is discouraged now. This patch replaces all usages of Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE in qtwebengine. As the two are synonymous, this patch should have no impact on users. Pick-to: 6.2 Task-number: QTBUG-86829 Change-Id: I6cf26bb24c4d68cc3da85193cf6f8e63daeaa9d7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove local-access-allowed from qrcAllan Sandfeld Jensen2021-08-121-1/+0
| | | | | | Pick-to: 6.2 Change-Id: I120f4e4e167d621efb6c13f5d16cc13134540352 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Ensure certificate error callback call for all typesKirill Burtsev2021-08-101-2/+4
| | | | | | | | | | | | Amends a2a9ea11f9. Actually reject certificate when it's considered to be fatal. Adapt tests for possible regression but checking if load really failed (due to missing internet access) or was just halted by missing callback call internaly. Pick-to: 6.2 Change-Id: I656525c353ce410f7bda8c55227a29fcd617bfdd Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Remove QWebEngineCallbackAllan Sandfeld Jensen2021-08-109-465/+37
| | | | | | | | | Was no longer used in exposed APIs Pick-to: 6.2 Fixes: QTBUG-74588 Change-Id: Iaf4943983655fc79e67df28f5cd4c4961b360579 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Return printToPdf to QWebEnginePageAllan Sandfeld Jensen2021-08-095-57/+123
| | | | | | | | | It doesn't use QPrinter and can be done using QtGui classes only. Pick-to: 6.2 Change-Id: I0e14563c1bb5e93d9803bb1a807f702b1a2a5315 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Reintroduce File Picker controlBalazs Egedi2021-08-093-11/+12
| | | | | | | | | | - Using FileDialog from QuickDialogs2 - Enabled the UIDelegates test Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: I8438a2498e864bc93abf26f2527d7883ac26ca9b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add QWebEnginePage::view() replacementAllan Sandfeld Jensen2021-08-092-0/+16
| | | | | | | | | Make it a static getter in QWebEngineView Pick-to: 6.2 Fixes: QTBUG-95331 Change-Id: I552f0047343abd909c5cd521a7a7a01d62896b00 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix wrong CHROMIUM_VERSION with cmakePeter Varga2021-08-061-1/+4
| | | | | | | Fixes: QTBUG-95614 Pick-to: 6.2 Change-Id: I78b011400c10c28c5de15ea12f684b7e1766af37 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Suppress console window for subprocess on windowsKirill Burtsev2021-08-061-0/+1
| | | | | | | Fixes: QTBUG-95571 Pick-to: 6.2 Change-Id: If1a14f5cd5b9428e4c6265c5464b071fd8320562 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Fix missing xkbcommon include on openSUSEMichal Klocek2021-08-061-0/+8
| | | | | | | | | | | We include xkb_key_code_converter.h when compiling ozone_platform_qt.cpp Fixes: QTBUG-95473 Pick-to: 6.2 Change-Id: I45f8dbdd3bcd7934d376256ec08560a8327a8e70 Reviewed-by: Christophe Giboudeaux <christophe@krop.fr> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Implement QML Color DialogBalazs Egedi2021-08-041-12/+274
| | | | | | | | | | Quick Controls 2 does not contain Color Dialog, the Labs version does not run on every OS. Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: Idfb1fd017a7f7b74c4ad135575a9727607dacac4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* QtWebEngineProcess: fix installationLi Xinwei2021-07-292-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 09e5da6ac44c01ae0de34b789c42da515e82f07c, we pass "NO_INSTALL" to qt_internal_add_executable(), so we have to handle some installation issues manually. Use qt_get_cmake_configurations() instead of get_install_config(). Because get_install_config() only returns the first config in a multi-config build, this causes the debug executable not installed. We can install the debug executable to ${INSTALL_LIBEXECDIR}/Debug, like other executables, to avoid conflict with the release executable. But this will make installation codes very complex. So I propose to restore Qt5's behavior for it , add a "d" suffix to the debug executable and install both executables to ${INSTALL_LIBEXECDIR}. This can also avoid breaking windeployqt's logic of finding the debug executable of QtWebEngineProcess. Also adjust the output directory property to place executables under the correct directory. The release executable should be placed under ${QT_BUILD_DIR}/bin rather than ${QT_BUILD_DIR}/bin/Release. Given that the debug executable now has a "d" suffix, it can also be placed under the same directory. And install PDB files manually because QtWebEngineProcessd.pdb should be installed to ${INSTALL_LIBEXECDIR}, but qt_internal_install_pdb_files() will install it to ${INSTALL_LIBEXECDIR}/Debug. Pick-to: 6.2 Change-Id: I38b5e8d9ed939b88de86ab5722dd56777442ed03 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* QWebEngineNavigationRequest: Prospective fix for clang parsersFriedemann Kleint2021-07-251-1/+1
| | | | | | | | | | | | | | | | | | | The clang parser in Qt for Python and likely qdoc choke at QT_DEPREQT_DEPRECATEDCATED Q_ENUM: QtWebEngineCore/qwebenginenavigationrequest.h:85:19: error: expected member name or ';' after declaration specifiers Properly deprecating the enum would be done by specifying QT_DEPRECATED behind the enum keyword, but that causes deprecation warnings for the setter and getters ( action()/setAction()). Since they are deprecated, too, just remove the deprecation from the enumeration. Amends 13254e7950a032ebbeb11b1cf54b850c8326fb30, Pick-to: 6.2 Change-Id: I3ecf9b52abc0b5a6e503097b7a1d20c69a1c5f93 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Apparently we build fine with node.js 10.19 on UbuntuAllan Sandfeld Jensen2021-07-251-1/+1
| | | | | | | | Fixes confusing configure output Pick-to: 6.2 Change-Id: I17812524e3452d3b271a677d3877d1365ccfc38f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Disable kAllowContentInitiatedDataUrlNavigationsAllan Sandfeld Jensen2021-07-231-5/+0
| | | | | | | | | | | | | | | It is bound to disappear from Chromium sooner or later, and is more secure turned off. [ChangeLog] Page content may no longer navigate to data-urls, if this is needed we recommend using custom-url schemes instead or force old behavior using --enable-features=AllowContentInitiatedDataUrlNavigations, though the feature switch may be removed in any later update. Pick-to: 6.2 Change-Id: I9398f54bcb49dce90afa049b2a2f4acf6f9810f7 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Add support for macOS universal buildsAllan Sandfeld Jensen2021-07-222-396/+437
| | | | | | Pick-to: 6.2 Change-Id: I416036a925167204cf5121108922911bce854352 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix crash in UI thread after deletion of profile io data on IO threadKirill Burtsev2021-07-221-5/+7
| | | | | | | | | | | | | Access happen if io data was removed in io thread by posted task earlier than shutdown call. Ammends a5e627160c ==853575==ERROR: AddressSanitizer: heap-use-after-free on address ... READ of size 1 at 0x6120001946c0 thread T0 #0 QtWebEngineCore::ProfileIODataQt::shutdownOnUIThread() profile_io_data_qt.cpp:109:9 #1 QtWebEngineCore::ProfileQt::~ProfileQt() profile_qt.cpp:117:22 Pick-to: 6.2 Change-Id: Ia5b7710553e80cbb95bde0855093d31a60781c2b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Improve toolchain generationAllan Sandfeld Jensen2021-07-222-3/+3
| | | | | | | | | Set is_clang and calculate v8-host arch for other hosts than x64. Pick-to: 6.2 Change-Id: I5622839840141ed60328c8bd736e4cada3e0ecee Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add QWebEngineNewWindowRequest::openIn(QWebEnginePage *)Allan Sandfeld Jensen2021-07-213-5/+22
| | | | | | | | Makes for a nicer API Pick-to: 6.2 Change-Id: I15e72d526e9cf6cf9ca8bd3e24f5dd7e7b2e9fa5 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Silence GCC warnings in corePeter Varga2021-07-212-0/+17
| | | | | | Pick-to: 6.2 Change-Id: I0aabf0d5baec8ba0a4a127d4c5dccf013d775ea2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* WebEngineNavigationRequest: add accept/reject and deprecate setActionKirill Burtsev2021-07-2110-61/+74
| | | | | | | | | | | | Match naming with others and use accept/reject methods to handle request. Also, allow to use request object after call scope in QML. [ChangeLog][QWebEngineQuick][WebEngineNavigationRequest] setAction(action) is deprecated in favor of new accept/reject methods Pick-to: 6.2 Change-Id: I83252370e2e83017008f6951f98b7ecad119e232 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove duplicated 'downloadProgress' in favor of separate signalsKirill Burtsev2021-07-212-16/+0
| | | | | | Pick-to: 6.2 Change-Id: Ib825d63c89e591e740b206f43c3eadbf32319daa Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QWebEngineProfile: hide notificationPresenter method back from apiKirill Burtsev2021-07-211-1/+3
| | | | | | Pick-to: 6.2 Change-Id: Ic9468cd078502fd5412da2374a2c814366dcf320 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Remove two feature disablementsAllan Sandfeld Jensen2021-07-211-8/+0
| | | | | | | | Assuming they work now. Pick-to: 6.2 Change-Id: I98623dbee34cd2749999c43a596decceecd1fd5b Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Remove IPC message loggingPeter Varga2021-07-2110-62/+3
| | | | | | | | | Doesn't seem to be useful, chromium community doesn't maintain it anymore. Pick-to: 6.2 Change-Id: I24071d6319c258f2d88f3bde5c38dd9fddeec9a8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Refactor cmake buildMichal Klocek2021-07-204-246/+45
| | | | | | | | | | Add macros to share common cmake code blocks with QtPdf. Reconsider later to do proper scoping and change those to functions if make sense. Pick-to: 6.2 Change-Id: I500acdba1415feab373a012dcf9a9ddedf33cfac Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cleanup gni filesMichal Klocek2021-07-204-511/+63
| | | | | | | | | | | | | We use now BUILD.gn template which we configure from cmake, therefore source and resource gni files are no longer in use and are outdated. Remove them. Remove also qtwebenigne.gni which did not really encapsulate anything. Pick-to: 6.2 Change-Id: I847d27be24a08ea03da93464d086c0be8b5f8e4b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix assertion in getCurrentKeyboardLayout()Szabolcs David2021-07-201-0/+3
| | | | | | | | | | | | | FATAL:xkb_keyboard_layout_engine.cc(640)] Keymap file failed to load: hu-us If there are multiple layouts provided (eg. "hu,us") and there is no layout variant, we appended the second layout as a variant (eg. "hu-us"). This happens because strtok() caches the pointer of the next token from its previous call and uses that when processing a null string. Pick-to: 6.2 Change-Id: Ic1d8bd14f95bda65a9fba82c1df45af306c4445b Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Get rid of Quick's TestSupport APIPeter Varga2021-07-2019-478/+5
| | | | | | | | | | | - Moved TestInputContext and TestInputEvent APIs to tst_qmltests. - Removed loadVisuallyCommitted and use Item.grabToImage to check if page is rendered. - Removed windowCloseRejected signal and use a hidden callback instead. Pick-to: 6.2 Change-Id: Ica6e4c6017426e0171d738a6a59afa557c786698 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Clean up quick APIPeter Varga2021-07-1926-169/+152
| | | | | | Pick-to: 6.2 Change-Id: I9407d407b203b8e2bb13768e5a899624ea47282a Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Merge UI2DelegatesManager into UIDelegatesManagerBalazs Egedi2021-07-184-111/+5
| | | | | | | | | | Drop Quick Controls 1 support. Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: I68580ef4649141d3d1507fd207088794e7764d2a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Do not install QtWebEngineProcess twiceKai Köhne2021-07-161-1/+4
| | | | | | | | | | | Pass NO_INSTALL, so that QtWebEngineProcess is not installed into INSTALL_BINDIR. We have explicit install rules further down below. Pick-to: 6.2 Fixes: QTBUG-95153 Change-Id: I2dfae1e8a6bb9183d25590b7ba5cdb136252a1e4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add arm optimization flags to cmake buildMichal Klocek2021-07-162-5/+45
| | | | | | Change-Id: Ibab4630fd226f46f58d08c603436dc2c378212ec (cherry picked from commit b1a6adf731828b1f68f51480eeb21dd9e7d3ba1e) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add cross compilation support to cmake buildsMichal Klocek2021-07-164-45/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add arm cross-compile basic support. CMake does not support host builds. However we do host build with gn and changing that would require an extra effort to keep all necessary changes with Chromium upstream. Therefore let gn to perform the host build for required tools and just feed gn with all the build data. Add new build steps: * install gn into QT_HOST_PATH/libexec. * run hostBuild project to get native architecture and compiler * call PkgConfigHost to pass pkg-config paths to gn * create wrapper script for host pkg-config to escape yocto shell pkg config exports This change also splits gn toolchain into 3 toolchains host,target,v8 Now hostBuild provides host and v8 toolchain in case of cross compile. The build optimizations will follow in another patch. Fix not existing 'boot2qt' condition and enables more test on QEMU. Note this is tested only with yocto based images. Task-number: QTBUG-91760 Change-Id: Ic2bea12229acc71fbd36a848e9ed4fed7e14b485 (cherry picked from commit 3a962d8a2d3b70639a195fe5fd442f6c653bbe8f) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Bump copyrightsAllan Sandfeld Jensen2021-07-1415-15/+15
| | | | | | Pick-to: 6.2 Change-Id: I8eb8bfba45abb340816b8c2072cca4486c1f37ab Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix documentation of WebEngineView::backgroundColorSzabolcs David2021-07-141-1/+1
| | | | | | | | | | Type is color instead of bool. Pick-to: 6.2 Task-number: QTBUG-86021 Change-Id: I9c083096b545cf56a31174f121d0c245321874ff Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove one more redundant function definitionAllan Sandfeld Jensen2021-07-143-17/+8
| | | | | | Pick-to: 6.2 Change-Id: I45bb1ab74fd15cae9c84262f3887c2ebbef23c3b Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Update parameters to findText callbackAllan Sandfeld Jensen2021-07-138-23/+23
| | | | | | | Pick-to: 6.2 Change-Id: I622ff55c1c9b6f9d4818228c75543c3deffa37be Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Various clean-ups around QWebEngineViewPeter Varga2021-07-135-40/+40
| | | | | | Pick-to: 6.2 Change-Id: I16f27054871f63526946101e07cb0dcf4aa3b390 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Get rid of private methods of QWebEngineNewWindowRequestPeter Varga2021-07-126-48/+100
| | | | | | Pick-to: 6.2 Change-Id: I40072b45ceffa1a2c92027a4c01239974b8ac498 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix Keyboard.getLayoutMap() with cmake buildPeter Varga2021-07-122-8/+8
| | | | | | | | USE_X11 is disabled but we don't need it due to the USE_XKBCOMMON check. Pick-to: 6.2 Change-Id: Ief5ed178152da10ceef3d2c3a415647ce6d3aee6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update comments on ContextMenuRequest enumsPeter Varga2021-07-121-2/+3
| | | | | | Pick-to: 6.2 Change-Id: I3e1b9d0481b36f822c1b119b7f27da05c320064f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update ChromiumAllan Sandfeld Jensen2021-07-121-0/+0
| | | | | | | | | | Submodule src/3rdparty 4898b1c1..2e775bd8: > Fix compilation error for qemu > Fix enable_extension=false builds Pick-to: 6.2 Change-Id: Ibf994eccbd24d04b2ee0ada3601de52865b568c4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix build with printing disabledAllan Sandfeld Jensen2021-07-122-1/+2
| | | | | | Pick-to: 6.2 Change-Id: I11d3f61d1c916e6696a1cbf85bb0e0457fe52188 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Get rid of a few redundant method variantsAllan Sandfeld Jensen2021-07-093-39/+6
| | | | | | | | | Use default arguments to get rid of the old method version without breaking API. Pick-to: 6.2 Change-Id: I2f71b04bff491567df564c66cd98d0d04bfa0517 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Remove outdated QT_VERSION_CHECKsAllan Sandfeld Jensen2021-07-099-158/+0
| | | | | | Pick-to: 6.2 Change-Id: I4c4b78af0bd7da5912b5e0136f9cfdb3c4268a7e Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Fix Qt include conventions in public headersFriedemann Kleint2021-07-0915-37/+39
| | | | | | | | Specify the module and use the .h files. Pick-to: 6.2 Change-Id: I7c2bb1a635d10e25c874f18736120efde6ce2ca4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Clean up includes, forward declarations and friends in core apiPeter Varga2021-07-0820-42/+7
| | | | | | Pick-to: 6.2 Change-Id: I58e2dc2443bca75b0d315694c9f6503251a7be02 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Adaptations for 90-basedAllan Sandfeld Jensen2021-07-0886-749/+691
| | | | | | Pick-to: 6.2 Change-Id: I8402b044d8e12d75e144a00984b856f3de10bffd Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* QWebEngineQuick: Fix export macrosFriedemann Kleint2021-07-0816-25/+25
| | | | | | | | | Add Quick to the name. Pick-to: 6.2 Change-Id: I898f946d2dc6b306314330d3d3fbbfc8a3001557 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>