summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken ABI in qtwebengine libs between 5.8/5.9Michal Klocek2017-05-152-0/+125
| | | | | | | | | | | | | | | | | | Due to internal chromium 53 change in default allocator qtwebengine 5.8 release exported globally operator new, new[], delete and delete[] with Qt_5 'default' version. The issue was spotted and fixed after official 5.8.0 release. This causes ABI breakage since faulty released symbols are missing in upcoming 5.9.0 release and the software compiled against 5.8.0 will not work due to unresolved symbols at runtime. Readd the symbols, however mark Qt_5 symbols version as non-default, this way they are not picked up during link time, but they still could be resolved during runtime. Task-number: QTBUG-60565 Change-Id: I3320ac7785aea6b03443e8acd4b9d334e574d77f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Update ChromiumAllan Sandfeld Jensen2017-05-151-0/+0
| | | | | | | | | | | | | | Pulls in the first of the security patches from Chromium 58 Changes: 91208c9 [Backport] Fix for occasional crashes in FindRequestManager::OnFindReply(). 4cde785 [Backport] Fix for CVE-2017-5057 ddf1bc1 [Backport] Fix for CVE-2017-5058 bea5a0f [Backport] Fix for CVE-2017-5059 2312c65 [Backport] Fix for CVE-2017-5060 Change-Id: Ie3362001e588730d32c4687e0ff90482d9bd5a8b Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix backwards compatibilityAllan Sandfeld Jensen2017-05-104-0/+18
| | | | | | | | | | QtWebEngine supports building with last stable and last LTS Qt releases. Guard some 5.7-5.9 API from being used when not available, and reinstate the default features for 5.6 LTS builds. Change-Id: Ia288a49109d011a2bee883d4a2d38d994b497d59 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix crash on exit with url-request interceptorsAllan Sandfeld Jensen2017-05-083-0/+8
| | | | | | | | | | If the interceptor is the child of the profile, they will be deleted with the API profile which is before the underlying browser-context, they should therefore be unset from the browser context first. Task-number: QTBUG-60236 Change-Id: I2954e8106863b8b421ef166f6bf8fa79240c95ee Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Disable hardware video decoding on macOSAlexandru Croitor2017-05-081-0/+6
| | | | | | | | | | | | | | When WebEngine is built with proprietary codecs enabled, this leads to usage of the macOS video hardware acceleration framework. Because of missing support of Rectangle OpenGL textures on the Qt WebEngine side, AVC videos are not displayed correctly. Disable hardware video decoding on macOS until said support is implemented. Task-number: QTBUG-60002 Change-Id: I5faf8df00362d442c5a6f207cc2a9637d663ad00 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Doc: Update Chromium versionKai Koehne2017-05-081-2/+2
| | | | | | Change-Id: I91d394cb0f308c76d97bfd8a99ff8b3e1c2243e6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Disable accessibility support on Linux by defaultAlexandru Croitor2017-05-082-3/+38
| | | | | | | | | | | | | | | | | | | | | For very big HTML pages, accessibility support can slow down the loading and rendering of pages due to creation of many AXNodes for every DOM node, and a lot of serializing and deserializing between processes. Because accessibility is almost always enabled on Linux, and there is no way to query if an accessibility feature was explicitly requested, Qt WebEngine accessibility support on Linux will be disabled by default. Users can set the QTWEBENGINE_ENABLE_LINUX_ACCESSIBILITY environment variable to re-enable accessibility support on Linux. [ChangeLog][Accessibility][Linux] Accessibility is disabled by default for Qt WebEngine on Linux. Task-number: QTBUG-59922 Task-number: QTBUG-54650 Change-Id: Ib0454f6f753043838e4ecf2227d2249afc15a6ef Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Move ICU configuration to new configure systemAllan Sandfeld Jensen2017-05-081-0/+0
| | | | | | | | | The command-line switches is called webengine-icu to avoid conflicting with icu switches in other modules. Change-Id: Ic923a199efbc4081b3c30f0cafa4b7ea786bdb00 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Make Simple Browser a highlighted exampleKai Koehne2017-05-081-1/+1
| | | | | | | | | Show SimpleBrowser prominently in the Qt Creator Welcome screen, instead of the Markdown Editor example. Change-Id: I9db425b1a9a5b39aa38ee5b70d123c96ecabca02 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Merge 5.9 into 5.9.0v5.9.0-beta4Oswald Buddenhagen2017-05-0511-71/+70
|\ | | | | | | Change-Id: If450c073521057241f34ed9b9a7f9965c6752a15
| * Create example for full screen feature in WebEngineJüri Valdmann2017-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an example ('videoplayer') showing how to enable the Fullscreen API[1] in QWebEngineView. This is one of the missing examples blocking the removal of demobrowser. [1]: https://fullscreen.spec.whatwg.org Task-number: QTBUG-59820 Change-Id: Ib02a1556515d87e595ca54c2bce18c9144030fbc Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Improve Qt Creator indexingAllan Sandfeld Jensen2017-05-034-9/+17
| | | | | | | | | | | | | | Includes gn sources, headers and defines Change-Id: I2abfb2c5238211a2305f6bdbcd082e832c048a2b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Detect the scenegraph software backend when it was set programaticallyMichael Brüning2017-05-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | Since 5.8, it is possible to set the Qt Quick scenegraph backend using QQuickWindow::setSceneGraph backend. However, this is not detectable by WebEngine's implementation as it relied on environment variables or command line options being specified. Task-number: QTBUG-60232 Change-Id: I53291510887ec5c75a15d5927a84e91fb5859e26 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * Clean "system" calls to build&run gn and ninjaMichal Klocek2017-04-283-60/+46
| | | | | | | | | | | | | | | | | | | | There was a time when gn build was called during make step, however this was not working with recursive qmake calls. Clean up leftovers and fix path and warnings like "Conditional must expand to exactly one word." during builds. Change-Id: I8546520345a5f89ee829558fa0fd9183587848b3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Fix macOS deployment target to match the one in Qt CoreAlexandru Croitor2017-04-281-0/+0
| | | | | | | | | | | | | | | | | | | | | | The minimum required macOS deployment target in Qt 5.9 is 10.10. This should be passed on to Chromium, rather than hardcoding the value to 10.7, which was used in pre-Qt 5.6 days to actually require a higher version than Qt Core used at the time. Task-number: QTBUG-60438 Change-Id: Id2ae47f467f8cc92403c1cd7a467335ebbba4e8e Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Make python2 usage more robustJoerg Bornemann2017-04-274-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After configuring Qt there will be an error message if a suitable python version could not be found. Add python2 configure test that - first looks for python2 in PATH - then looks for python in PATH - checks the Python version - stores the result in QMAKE_PYTHON2 Use $$QMAKE_PYTHON2 everywhere where we call python. Pass $$QMAKE_PYTHON2 to gn for its exec_script feature. Task-number: QTBUG-60164 Change-Id: I33de1273cbd20a787b3c8889d35280784dbcd5ae Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Doc: Add info to QWebEngineDownloadItem::downloadProgress docsLeena Miettinen2017-05-041-2/+6
|/ | | | | | | | | The documentation was not very informative when compared with the docs for the similar QNetworkReply::downloadProgress signal. Task-number: QTBUG-56979 Change-Id: Icade60317a7b3fd8aaa37770c60ce8f4f947382b Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix undeclared use of QSGFlatColorMaterial when QT_NO_OPENGL is definedJüri Valdmann2017-04-261-4/+4
| | | | | | | | | | | QtWebEngine fails to build with -no-opengl due to src/core/delegated_frame_node.cpp trying to use QSGFlatColorMaterial without including the header. Change-Id: I98c12d3c482f7cacb2f61dd13ae32ee0a5740ae2 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Override shortcuts in HTML input fieldsJoerg Bornemann2017-04-255-5/+140
| | | | | | | | | | | | | | | | | | | When users defined a single-letter short cut it was not possible to type this letter in HTML input fields. Fix this by accepting ShortcutOverride events whenever the web page is editing text. Use QInputControl::isCommonTextEditShortcut for Qt 5.9 and later. For the case where QtWebEngine is built against an older Qt a duplicated code path is used. Also, ensure users do not override web action short cuts. Task-number: QTBUG-59053 Change-Id: Ic26cf2a040a72b118273c6645c00b2913b995b0b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Document that Python 3 is not supportedJoerg Bornemann2017-04-251-1/+1
| | | | | | | | Task-number: QTBUG-60163 Change-Id: I4763dca3c651c08fb4094a3def6494b3dcd65ebd Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Add class name to function signatureLeena Miettinen2017-04-251-1/+1
| | | | | Change-Id: I95547a19dfa4dc375f93b2c6c1bfdefc05d07a51 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Mark QtWebEngineProcess as compatible with Windows 10Kai Koehne2017-04-212-0/+19
| | | | | | | | | | | | | | This fixes ::GetVersionEx to report the actual Windows version, instead of always reporting Windows 8. Note though that this fixes only the renderer process - the manifest of the user process is beyond our control. Chromium currently uses the dynamic checks for Windows 10 to e.g. enable advanced sandboxing for ppapi, and scroll performance (see https://bugs.chromium.org/p/chromium/issues/detail?id=517183) Change-Id: I72870f31eac2074748b2c11a2b6cab9a03e62527 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Standardize override declarationAllan Sandfeld Jensen2017-04-2144-481/+466
| | | | | | | | Update our overrides to Qt coding standard getting rid of Q_DECL_OVERRIDE and redundant virtual declarations. Change-Id: Id8b0750eb05c51fc8f50cac4000a811eebcbf918 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Disable setting background color in QInputMethodEventPeter Varga2017-04-211-5/+1
| | | | | | | | | | | | | IME managers may set background and foreground color of the composition string. Since there is no Chromium API for setting the foreground color, changing the background color to black may produce "black-on-black" text. Chromium locks the background color to transparent thus we do the same in this fix. Task-number: QTBUG-58362 Task-number: QTBUG-60031 Change-Id: I939c8aaaa847de191890d6924ba3c7652465f8a0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove superfluous run_gn target from gn_run.proJoerg Bornemann2017-04-211-4/+1
| | | | | | | Gn is called at qmake time. The run_gn target was empty and did nothing. Change-Id: I570094e013c63a78ca6cec6987f119bfda45e085 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Implement proper touch handling on macOSAlexandru Croitor2017-04-215-0/+63
| | | | | | | | | | | | | | | Use the OS provided QNativeGestureEvents for pinching and smart zooming. This replaces the usage of the Android based gesture recognizer on macOS. This also implements multitouch gestures to work with the Qt Quick implementation of QtWebEngine for macOS, because touch events are ignored by default on macOS in QQuickItem. Task-number: QTBUG-58779 Change-Id: I17399e4e89a57557540b2fd0940a445326b682f3 Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add two nullpointer checksViktor Engelmann2017-04-152-4/+9
| | | | | | | | | The two nullpointer checks prevent crashes that happened when one clicked on a link with target="_blank" in 56-based. Task-number: QTBUG-46713 Change-Id: I1f8a20a52726ab05a85dbca2ec49784985384d06 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Enable brotliv5.9.0-beta2Allan Sandfeld Jensen2017-04-121-0/+2
| | | | | | | | Enable brotli if enabled in content features (which it is by default). Task-number: QTBUG-60049 Change-Id: I67ee51be47de4df0960e378f74c323ef30a7b25a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Handle QInputMethodQueryEvent forwarded by RWHVQDWPeter Varga2017-04-122-0/+17
| | | | | | Task-number: QTBUG-58362 Change-Id: I6c80c8063ccad97aa80aff8ee44aa10a899c5ff5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix text selection and input method queryPeter Varga2017-04-122-54/+205
| | | | | | | | | | | | | | | Instruct the render process to change the text selection if it was requested via an input method event. Raise the selectionChanged() signal when all the corresponding input method properties are set. Moreover, add back the remaining input method widget auto tests. The updated tests are moved to the QWebEngineView tests since the corresponding APIs (inputMethodQuery() and input event handling) are now available via the QWebEngineView's focus proxy (aka RWHV). Task-number: QTBUG-55766 Change-Id: Ia0022d5f38b31dd59b084ff42e4abc2780ae90ec Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove unused qmlRegisterRevision callKai Koehne2017-04-112-5/+0
| | | | | | | | This was used for registering an alternative QtWebEngine.experimental import, which has however been removed since then (a4dcc5b4894aac). Change-Id: I0edd869fcc0057b2c6a4932eb39cb8f739f571bc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Document sandboxing supportAlexandru Croitor2017-04-111-0/+18
| | | | | | Change-Id: I5a4f72493fd892c478074705ccbdb363b4002789 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update plugins.qmltypes to 1.5Kai Koehne2017-04-113-26/+88
| | | | | | Change-Id: Iad422ed29cf1781b4537c747bbe498c32f1e5ef0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Allow setter methods of WebEngineScript to be called directlyKai Koehne2017-04-101-7/+7
| | | | | | | | The methods got removed from the script API in change bec2be57891f87f2b8bc04. However, this might break existing code. Change-Id: Ibc1b4632ade847953f848b3d1a29a14cab3f035b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Fix QtWebEngine version numberKai Koehne2017-04-102-3/+3
| | | | | | | | The latest version for Qt Webengine in 5.9 will be 1.5, not 1.6. Change-Id: Ibae42f24f4b7477901923ff0ef5436642599f365 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Docs: Update QtWebEngine to 1.5Kai Koehne2017-04-101-2/+2
| | | | | Change-Id: I0831cbb21c5f67b74a1df2311f055e6218ae3619 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Set gn use_gold based on qmake's use_gold_linkerAllan Sandfeld Jensen2017-04-102-0/+11
| | | | | | | | Avoids adding --use-ld=gold on the link command line when gold linker has been deselected in Qt. Change-Id: I2d34cd3043aa24dca1f5f1604c97d8beccb70093 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update ChromiumJoerg Bornemann2017-04-091-0/+0
| | | | | | | | | | | | | | | | | | | Take in following fixes: 853d4069 [Backport] Need this to build on vs2017 f3e4afb7 Merge remote-tracking branch 'origin/55-based' into 56-based 3a8bbfb1 Don't use the gesture detector for scrolls and flings on macOS a3e8625c Export GN calculated sources to qmake 4d83c198 Licenses: Remove invalid URLs to fix QDoc errors 2229fffd Fix build with GCC 7.0 1cc1d80e Allow using quota management API for non-standard URLs b05f5036 Silence warnings about unknown attributes ae91fb1e Fix render process crash for windows debug builds on win10 Task-number: QTBUG-58779 Task-number: QTBUG-59776 Task-number: QTBUG-59812 Change-Id: I9ab8e607e83cea9130ce304a7da636b586bbb9db Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix pepper cdms featureAllan Sandfeld Jensen2017-04-066-12/+14
| | | | | | | Is now also buildflag and not command line define. Change-Id: I3c687981928239f669bd285797b5ceee4e994822 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Install filesystem: protocol handlerSzabolcs David2017-04-051-1/+4
| | | | | | | | | | File creation with FileSystem API is supported, but these files were not accessible through their filesystem: URLs. Change-Id: Ic45a8ad766917947a70eb0079d37490576ea5d22 Task-number: QTBUG-56531 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Describe HTTP/2 supportLeena Miettinen2017-04-042-2/+22
| | | | | | Change-Id: I0dfe290b9d6ac1ed054cecd0911709e9626f8691 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix spellcheck feature checkAllan Sandfeld Jensen2017-04-049-20/+24
| | | | | | | | | Was changed to generated buildflag headers instead of command line defines. Task-number: QTBUG-59687 Change-Id: Iead64f5321d000c07172ee27a0032394527ec501 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix assert in autotest on windowsAllan Sandfeld Jensen2017-04-041-1/+1
| | | | | | | Chromium now asserts if the clipboard lists the same mimetype twice. Change-Id: Ibfcbb9a7953a8b4b55035e633e0f2740257af6ad Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Fix source indexing in Qt Creator 4.3Allan Sandfeld Jensen2017-04-044-237/+247
| | | | | | | | Create a fake project, just for including the files compiled by ninja in a qmake project that Qt Creator can index, but which we do not build. Change-Id: I7b4fc7ba23090bddb49ee1e85f76f71fb33544e2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Handle the case when printing result does not contain any dataMichael Brüning2017-04-041-0/+11
| | | | | | | | Failing to do so would trigger an assert in the PDFium wrapper's constructor. Change-Id: Iaa53b1baa54e6483a4e7e9985ad841ac3cfef940 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Do not set arm/misp specific gn args for host_buildMichal Klocek2017-03-311-2/+2
| | | | | | | Self build of gn ends with error on embedded builds. Change-Id: I669c61eef7107919dbe11cdb558cf6ae0499621c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix calls to ninja on Windowsv5.9.0-beta1Kai Koehne2017-03-311-2/+2
| | | | | | | | | Make sure that the path to ninja and the directory uses the correct slashes. Without it, the call might silently fail. Task-number: QTBUG-59842 Change-Id: If59eb14b1fb99aae2b78c85a0052e5aefd5d5bf9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Mark QQuickWebEngineScript::timerEvent() internalLeena Miettinen2017-03-301-0/+3
| | | | | | | ...to suppress a QDoc error. Change-Id: I11cb449137af06e11ba4e14a14da97d0088f8416 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* [Doc] Add doc link between methods for request filteringMichael Brüning2017-03-302-0/+6
| | | | | | | | | | Adds a doc link between QWebEngineUrlRequestInterceptor and QWebEnginePage Task-number: QTBUG-54507 Change-Id: Ic9aa535fbf19c7c5ccf279ee660adf180057b56b Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Call javaScriptConfirm for unload dialogsFlorian Bruhin2017-03-282-1/+4
| | | | | | | | | | | | | This unfortunately means we lose the ability to customize the title with the default implementation, but it's still better than having a QMessageBox hardcoded without being able to customize this behavior at all. [ChangeLog][Qt WebEngineWidgets][QWebEnginePage] The javaScriptConfirm method is now also called for unload dialogs (onbeforeunload handlers). Task-number: QTBUG-58673 Change-Id: I82393da2593dc84e94d577ff28f5d6d8988df552 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>