summaryrefslogtreecommitdiffstats
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2020-06-2915-80/+190
|\ | | | | | | | | | | | | Conflicts: src/src.pro Change-Id: I03c260ba676296f93d8137e79b46f3978f5f41ef
| * Initialize the extension bindings in g_driver_eglRomain Pokrzywka2020-06-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | This step is done in GLSurfaceEGL but missing in GLSurfaceEGLQt. The extension bindings in g_driver_egl are checked, among other things, when initializing DXVAVideoDecodeAccelerator, so we need them to enable hardware-accelerated video decoding on Windows with ANGLE. Change-Id: I6a650a0aafe3d4f870101d33d2117427c22304e7 Reviewed-by: Romain Pokrzywka <romain.pokrzywka@gmail.com> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Fix recentlyAudible signalAllan Sandfeld Jensen2020-06-231-4/+1
| | | | | | | | | | | | | | | | It is now emitted with a different enum flag value. Fixes: QTBUG-85118 Change-Id: Ic3e4807d451a0a53bda17e0b8d43d906cb315fc9 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Detect the presence of host node.jsAllan Sandfeld Jensen2020-06-232-0/+21
| | | | | | | | | | | | | | | | Allows building with or without it. Fixes: QTBUG-83729 Change-Id: I88d784e3230208e1268491c6ae0a4ebf1543aac8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Fix compiler warnings in file_picker_controller.cppTamas Zakor2020-06-191-1/+1
| | | | | | | | | | Change-Id: I6d160f90e7693d15cb495d38788c57b47a1fe548 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * Add some info when project is misconfiguredMichal Klocek2020-06-121-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We support calling make on not configured properly qtwebengine and qtpdf. This avoids issues when there is no make file for top level build and user does not understand why. To do that we 'share' error messages between configure and make calls. However to avoid duplicating tests and error messages 'configure test conditions' have to match 'error messages' in support.pri. In case we miss some error message just ask for reporting the bug, instead of still trying to build the thing. Change-Id: I23320afa5174b5f33871c8cd8739ceea8e3a169d Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Split errorChecks for webengine and pdfMichal Klocek2020-06-031-10/+18
| | | | | | | | | | | | | | Separate error checks, so qtpdf can have own dependencies. Change-Id: I9e538b875fe67448497f10dcd45c83782d98da2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Update devtools loadNetworkResource to match latest ChromiumAllan Sandfeld Jensen2020-06-031-5/+21
| | | | | | | | | | | | | | Adds handling of file and webui schemes. Change-Id: Idd9f7dd79cc7b327dab789e369baf00772820cc6 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * Clear previous values from UserScript::parseMetadataHeaderJüri Valdmann2020-05-291-0/+5
| | | | | | | | | | Change-Id: I80592eb6a2bc49cc6366725c77d385827619f6e5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Delete unused methods in UserResourceControllerHostJüri Valdmann2020-05-292-21/+0
| | | | | | | | | | | | | | Delete registeredScripts and containsUserScript. Change-Id: I0697098c55e5bcad2e0f37b325c0611e3802155a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Add missing dependency on quota_internals resourcesAllan Sandfeld Jensen2020-05-291-0/+1
| | | | | | | | | | | | | | | | Needed by quota_internals.cc Fixes: QTBUG-84557 Change-Id: I428f8a95617aa1019468d80405e821f9a9e7f28f Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| * Move sanitizer to buildtoolsMichal Klocek2020-05-281-20/+0
| | | | | | | | | | Change-Id: I1531199bb15b9d05e5c017d14fce07d39625cafe Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Move arm-thumb feature to buildtoolsMichal Klocek2020-05-282-9/+4
| | | | | | | | | | | | | | | | | | Share arm-thumb setting between pdf and webengine. Move webengine-embedded to webengine since it is not used by pdf. Change-Id: Id23888423af7a37a3b3aa06e40dc0359fb90724b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Remove duplicated feature webengine-ozone-x11Michal Klocek2020-05-281-9/+3
| | | | | | | | | | | | | | This feature is already in buildtools. Change-Id: Iff5d5cc4b72b29b850e8e4cb11b90251916ed9c7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Move pdfium zlib and png configs to buildtoolsMichal Klocek2020-05-281-8/+0
| | | | | | | | | | | | | | | | Adjust config so we use pdfium in webengine not only with printing. Change-Id: I1c4b263e89a993bde84b92872a5ad1d6d48cedbb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Split gn args for pdf and webengineMichal Klocek2020-05-285-1/+112
| | | | | | | | | | | | | | | | | | Currently we run gn with same sets of arguments for pdf and webengine. Split those so we can make fine grain configuration and drop some requirements. Change-Id: I40890b5475dddadd0798ea091ca5e7143fd952b3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add ; to Q_UNUSEDLars Schmertmann2020-06-272-4/+4
| | | | | | | | | | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: Id948c173695923a1ea83a2098bafc10cfd4dc22b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Rename ShareGroupQtQuick to ShareGroupQtJüri Valdmann2020-06-222-10/+10
| | | | | | | | | | | | | | It's not really QtQuick specific. Change-Id: I34840004837495154876d38c7c1c994c11ace9ad Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Delete CompositorResourceJüri Valdmann2020-06-221-123/+0
| | | | | | | | | | | | | | Leftover from deleting old compositor Change-Id: I514462eacf3a29a5ed161f2e93d73bec9c2a804d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Delete QSG video node classesJüri Valdmann2020-06-225-732/+2
| | | | | | | | | | | | | | Leftovers from deleting old compositor. Change-Id: I9eb5a707f594f2355512ad2c585efc0a1ee3720a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Refactor RenderWidgetHostViewQtPeter Varga2020-06-1710-1088/+1275
| | | | | | | | | | | | | | | | Make RenderWidgetHostViewQtDelegateClient class instantiable and remove its implementation from RenderWidgetHostViewQt. Change-Id: Idcad3a805defe8b910f418b91f14808b6dbf083b Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Delete old compositor and remove --disable-viz-display-compositorJüri Valdmann2020-06-0816-2600/+73
| | | | | | | | | | Change-Id: I1b056a61e2b56b19441f559e97f785c87df61a0c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2020-05-2814-91/+122
|\| | | | | | | Change-Id: I40d9ae90a4ea82c6242f5d0a1665af3856ad2f0b
| * Fix resource look-up for pdf viewer in Chromium 80Allan Sandfeld Jensen2020-05-251-2/+17
| | | | | | | | | | | | | | | | | | We need to be able to recognize generated resources as well. Task-number: QTBUG-84340 Change-Id: Ib0a783a681c349c05972c0c67e2f0cf20d1c99c4 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| * Fix scrollbar when releasing mouse button outside of window on WindowsPeter Varga2020-05-252-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When releasing mouse button outside of window on Windows, an extra QEvent::Leave is sent before the QEvent::MouseButtonRelease. This extra Leave event resets the pointer to the last interacted scrollbar (last_scrollbar_under_mouse_) in Chromium. Leave events should not be sent until the last mouse button is released. Fixes: QTBUG-70437 Pick-to: 5.15 Change-Id: Ibf28b3ca0fd82feb5abf91ec851d92db0a8657f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 6eadb2f2588b240b5fcda38e1f68a49a4690eb6b)
| * Fix crash on WebContentsDelegateQt::CloseContents()Peter Varga2020-05-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CloseContents() triggers a windowCloseRequested() signal. The handler of the signal might close the QWebEngineView and it would result the destruction of the WebContentsDelegateQt. Thus, any operation on WebContentsDelegateQt is not safe after a WebContentsAdapterClient::close() call. For example, calling QWebEngineView::close() on QWebEnginePage::windowCloseRequested() would result crash because it sets life cycle state to discarded which destructs web contents. Fixes: QTBUG-84355 Change-Id: I5da404bc9b1923cc19085ee899b550da49d1416b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix path validation in FilePickerController::accepted()Tamas Zakor2020-05-201-18/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | In some cases QUrl::toLocalFile() does wrong path conversion on Windows. Therefore we have to convert the file URL to absolute path in another way and use FilePath::IsAbsolute() for validating that. Also stabilize WebEngineViewSingleFileUpload tests. They didn't wait for html title change when the expected value was the same as the default title. Change-Id: Ica7798a299f9b28657afeeccccfba3fdecc515e2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Add support for clearing the feature requestAllan Sandfeld Jensen2020-05-206-16/+39
| | | | | | | | | | | | Task-number: QTBUG-83476 Change-Id: I63ad9801e3e97f7fdac959600c69c04d0105be1f Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| * Remove QNX dead-codeAllan Sandfeld Jensen2020-05-153-48/+1
| | | | | | | | | | | | | | Hasn't compiled in many years Change-Id: I754fc5fee5c2fff51fb3b701fa81afbed7f60b8b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Fix conflict warning when running qmake on gn_runMichal Klocek2020-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since e75aed1a96e in base we have now new check for conflicting 'targets' when doing debug_and_release builds and generates a warning: Targets of builds 'Release' and 'Debug' conflict: gn_run. Some people are unhappy about it (me), therefore make workaround to suppress this warning. Most likely there is better way to fix it. Change-Id: Ia9dd3e2418c49097acf52ae3a0a6deae57365999 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Allow to set feature permission before first ever navigationKirill Burtsev2020-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since PermissionManagerQt functions independent of webcontents initialization, permission installment may be done earlier (right after page base constructor). Practically, this allows to grant/deny permission before first ever navigation to avoid permission feature request from well-behaving web application. Unfortunately, this only applies to Web Notifications: there is a way to check without request: Notification.permission javascript static object. Other supported features lack similar mechanism: they operate through success/failure callbacks, which unconditionally invoke permission requests, and Page/View API doesn't automatically answer with remembered permissions. Task-number: QTBUG-83476 Change-Id: I63a3cbca25498d5026975073e125f2ab4f9ab2ad Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Reuse switch from service_managerMichal Klocek2020-05-141-5/+3
| | | | | | | | | | Change-Id: I71b38064f8ef743440b4542add5d329df5843627 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix scrollbar when releasing mouse button outside of window on WindowsPeter Varga2020-05-202-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | When releasing mouse button outside of window on Windows, an extra QEvent::Leave is sent before the QEvent::MouseButtonRelease. This extra Leave event resets the pointer to the last interacted scrollbar (last_scrollbar_under_mouse_) in Chromium. Leave events should not be sent until the last mouse button is released. Fixes: QTBUG-70437 Pick-to: 5.15 Change-Id: Ibf28b3ca0fd82feb5abf91ec851d92db0a8657f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge "Merge remote-tracking branch 'origin/5.15' into dev"Allan Sandfeld Jensen2020-05-1530-115/+319
|\ \
| * | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2020-05-1530-115/+319
| |\| | | | | | | | | | | | | | | | | | | Conflicts: src/pdf/quick/qquickpdfselection_p.h Change-Id: I6eec37a01347c2d47cbfc1114326dfc6b58719ff
| | * Switch away from QT_NO_OPENGLAllan Sandfeld Jensen2020-05-116-43/+43
| | | | | | | | | | | | | | | Change-Id: I310265dacc9b1c8d391e82b6adf52b70c037d9b9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | * Fix upside-down render passes with software scenegraph (again)Jüri Valdmann2020-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally, in 2017, this same issue was fixed by vertically mirroring the texture used for the render pass (a311b7bc9d). At this time we were using QSGSoftwareInternalImageNode for the scenegraph node and QSGSoftwareLayer for the layer texture. Then, in 2018, the implementation of QSGSoftwareInternalImageNode was changed to automatically mirror its texture IF the texture is a QSGSoftwareLayer. This was not a problem because the layer was also changed to mirror its contents, i.e. the meaning QSGSoftwareLayer::setMirrorVertical was inverted. See 10c56615d in qtdeclarative. Finally, in 2019, we switched to using QSGSoftwareImageNode for the scenegraph node of a render pass. This caused the bug to return, since this node does not automatically mirror QSGSoftwareLayer textures. Fix it again by setting setMirrorVertical(false) on the layer. The default scenegraph is not affected by this change because the default image node uses the layer's normalizedTextureSubRect to automatically undo the effect of mirroring, i.e. mirroring the default layer has no effect on output. Fixes: QTBUG-83785 Change-Id: I3594c0c7f5364799af1f543d1e4e3de52a25cd2b Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| | * Document early feature reply for NotificationAllan Sandfeld Jensen2020-05-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make it easier to get right by normalizing the origin and test it. Task-number: QTBUG-83476 Change-Id: Ie4562e937cbcca5a1cf24e00d340a3ac2e9e2210 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| | * Fix AltGr on WindowsPeter Varga2020-05-051-2/+7
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-83710 Change-Id: Iaf5a33c0aeb53348d36cb7dda60602041299cd50 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Revive Pointer Lock featureSzabolcs David2020-05-046-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes several issues: - Accepting mouse lock permission from modal dialog was not working on Linux. XCB needs some time to activate the parent window after accepting the dialog and we expected to have immediate active focus. - Implementation of RenderWidgetHostViewBase::IsMouseLocked() was missing. - Fixed event.movementX/movementY by disabling ConsolidatedMovementXY feature. Calculate movement properties in WebEngine instead of blink. Task-number: QTBUG-83294 Change-Id: Ic03d05c1026a113cf5e8d22544fc508d9f285876 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Small refresh of mojo in SystemNetworkContextManagerMichal Klocek2020-05-042-6/+10
| | | | | | | | | | | | | | | Change-Id: Ifac25877bca4754e58e13037a94457b48ffe1e2c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Add archives rsp file for linker on macosMichal Klocek2020-05-041-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add archive rsp files for windows and macos to avoid long argument list for linker. Fixes: QTBUG-83731 Change-Id: Ib71bc6494e1958d745c0d99ddb792f7ae1d84505 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Minor cleanupAllan Sandfeld Jensen2020-05-042-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | Remove now redundant extra function, and let Chromium handle conversion back to cookie-line. Change-Id: I969cffb14c1df8ed897dd23a1b9e228ea153b44a Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | * Merge "Merge remote-tracking branch 'origin/5.15.0' into 5.15"Allan Sandfeld Jensen2020-05-048-9/+121
| | |\
| | | * Merge remote-tracking branch 'origin/5.15.0' into 5.15Allan Sandfeld Jensen2020-04-308-9/+121
| | | |\ | | | | | | | | | | | | | | | Change-Id: I916838caf8c981d5dac876631a6e510ed2ffbe0e
| | | | * Restore behavior of OpenURLFromTab if createWindow returns thisJüri Valdmann2020-04-263-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using QSharedPointer's reference count to communicate adoption/non-adoption, change adoptNewWindow to return a adapter pointer, with null meaning non-adoption. Then change QWebEnginePage's implementation to reuse already existing adapters if possible, restoring previous behavior of OpenURLFromTab when createWindow returns this. Task-number: QTBUG-80596 Change-Id: I8ee7c31e4294aabd3207c504cba67d6171c66cb0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | | * Forward unhandled scroll eventsAllan Sandfeld Jensen2020-04-225-2/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a regression in webengine stealing all wheel events. Fixes: QTBUG-81322 Change-Id: I0176627f3e13d97f55162f70fc7a969f98f4f444 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | | | * Implement WebContentsDelegate::ContentsZoomChangeAllan Sandfeld Jensen2020-04-222-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to do wheel zoom. Fixes: QTBUG-83656 Change-Id: I97d96585b7f760487daa292ad279805007c5095e Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| | * | | Add very basic chromium flags parserMichal Klocek2020-04-301-1/+47
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting chromium flags QTWEBENGINE_CHROMIUM_FLAGS only worked for simple flags, and we did only split(' '). This means setting anything quoted is missing parser and misbehaves. Add very very basic parser to support sth like: QTWEBENGINE_CHROMIUM_FLAGS='foo="foo1 foo2 foor3" bar' Fixes: QTBUG-78559 Fixes: QTBUG-83035 Change-Id: Ife62216ee013f4f888f2ec6f7cad59fcafb8a71e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * | Fix -no-accessibility buildPeter Varga2020-04-2911-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebEngine is built without -DQT_NO_ACCESSIBILITY. qtgui-config.h defines it but accessibility_activation_observer.h didn't include it if accessibility was disabled. Also replace all occurrences of QT_NO_ACCESSIBILITY by QT_CONFIG(accessibility) in core. Change-Id: I5e5e14885e04cd542ec9e52d770f7070e8edbf8b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>