summaryrefslogtreecommitdiffstats
path: root/src/webengine
Commit message (Collapse)AuthorAgeFilesLines
* Disable accessibility support on Linux by defaultAlexandru Croitor2017-05-081-0/+20
| | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* 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>
* Make python2 usage more robustJoerg Bornemann2017-04-271-1/+2
| | | | | | | | | | | | | | | | | | | | 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>
* Override shortcuts in HTML input fieldsJoerg Bornemann2017-04-251-3/+5
| | | | | | | | | | | | | | | | | | | 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>
* Implement proper touch handling on macOSAlexandru Croitor2017-04-211-0/+3
| | | | | | | | | | | | | | | 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>
* 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>
* 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>
* 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: Fix link errorNico Vertriest2017-03-281-3/+3
| | | | | | | | qquickwebenginedownloaditem.cpp:368: warning: Can't link to 'interruptReasonString()' Change-Id: Ia77d31851d17808330cfc701691e41eafb8d0aad Reviewed-by: Nico Vertriest <nico.vertriest@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Rename WebCoreVisitedLinksManager to VisitedLinksManagerQtAllan Sandfeld Jensen2017-03-261-1/+0
| | | | | | | | Rename to follow our standard naming. This class was one of our oldest and probably predates our standard naming convention. Change-Id: I32dfbad9611b789ad13114d9692b07045806f7c0 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Add inheritance to WebEngineView type docsLeena Miettinen2017-03-241-0/+1
| | | | | | | | | | ...to display all properties available for the type. Task-number: QTBUG-59673 Change-Id: I0ee61abefcfbcc229812dc7c3875d16fb279f9e0 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Support appstore compliancy switch from the new configure systemAlexandru Croitor2017-03-171-5/+1
| | | | | | | Change-Id: Ic7768d9b2677ed488d6af05f34942321b670671e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9Liang Qi2017-03-101-0/+1
|\ | | | | | | Change-Id: I6a39d1ec0ffc0394fbb472ab1df2963ed5c69ec7
| * Clarify JavascriptCanAccessClipboard documentationFlorian Bruhin2017-03-071-0/+1
| | | | | | | | | | | | | | | | | | Chromium always allows copying to clipboard (even when this is disabled) if it's resulting from an user interaction. Change-Id: I0363b892fef6ce015a2f8ae9b89423e1655b516c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Rework form validation QML testsPeter Varga2017-03-082-5/+0
| | | | | | | | | | | | | | | | | | Use Custom Dialog API instead of Test Support API for testing form validation messages. Moreover, remove the form validation part from the Test Support API. Change-Id: I8ecc80745ddad26f90df413d9a1d04045512af6c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add FINALs and explicit constructor to QQuickWebEngineScriptSzabolcs David2017-03-071-7/+7
| | | | | | | | | | | | | | Deriving from this class is not expected. Change-Id: I75be53358292fbcdc813fc6d48b21362f1cc3f16 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into 5.9Allan Sandfeld Jensen2017-03-025-3/+16
|\| | | | | | | Change-Id: Iff6ab3c287c58d8ec84a1513460bfce5218e8a61
| * Add support for macOS Airplay to Demobrowser in presence of dual GPUsAlexandru Croitor2017-02-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when Airplay was activated and a new QWebEngineView instance was created, a black area would be rendered inside the view. This happened because of incompatible OpenGL contexts. The global Qt OpenGL context could not share its textures with the newly created "after-airplay" context, due to the contexts being used by different GPUs (only possible on a MacBook Pro). The fix is to add the NSSupportsAutomaticGraphicsSwitching option into the application plist file, which informs macOS that the application supports usage of dual GPUs, and thus allows sharing of contexts across GPUs. Task-number: QTBUG-54053 Change-Id: Ic37fb75f164922bcca6456054174171fa9ba2bfb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Ignore synthetic hover move events if the mouse has not actually movedMichael Brüning2017-02-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6f84a09dfb and b2501b0bda in qtdeclarative introduced a synthetic hover move event being sent once per frame if the item underneath the mouse is marked as dirty. This triggers a loop when the web contents changes reacting to mouse move events as the item needs to be marked dirty to be rerendered. Ignore hover move events if the position of the mouse has actually not changed to work around this. Task-number: QTBUG-58561 Change-Id: Ic7f3c06e7acf5dfeacc95e347bd026233c957556 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| * Abort findText when destroying QWebEnginePageViktor Engelmann2017-02-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | In the destructor of QWebEnginePage and QQuickWebEngineView, we now call adapter->stopFinding() to suppress callbacks that would cause segmentation faults if a findText request is still active at that point. Task-number: QTBUG-58563 Change-Id: I9d5d8407ee6c28cd76bf6ecf0b62808394e151cd Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Fix empty dialogs on window.onbeforeunloadSzabolcs David2017-02-211-1/+4
| | | | | | | | | | | | | | | | | | Custom texts are not supported anymore in unload dialogs. Fill them with a better message. Task-number: QTBUG-58673 Change-Id: I820155452461db90bf1df2ae8a8ec10ee752aab1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Doc: Fix \sa links in the docsLeena Miettinen2017-02-091-1/+1
| | | | | | | | | | | | | | | | - Leave out the class name for the members of the class - Add brackets in the end of method names Change-Id: I5429be5620c5c192aa872d94ab047eebe39a13da Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2017-01-301-2/+7
|\| | | | | | | Change-Id: Ic36a80502730d404ab96dfa11ff1eb0ac6eb302d
| * Fix drag position updates for QQuickWebEngineViewJoerg Bornemann2017-01-261-2/+7
| | | | | | | | | | | | | | | | | | Like in the widgets API we must check the result of updateDragPosition and ignore or accept the QDragMoveEvent. Task-number: QTBUG-58037 Change-Id: I26b9e10460eb2840c45698d9444c15ed78c6a1b3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Make QQuickWebEngineScript a publicly exported classSzabolcs David2017-01-268-180/+284
| | | | | | | | | | | | | | | | | | Now the users can create user scripts when they are working with QQuickWebEngineProfiles in C++. Change-Id: I6ada78b1fc44c3f93589eb468578c330a1be9c6f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Add profile-wide user scripts to the Quick APISzabolcs David2017-01-264-0/+74
| | | | | | | | | | | | | | | | Add API tests in order to try how it works in C++ and QML. Task-number: QTBUG-51034 Change-Id: I1680297e2dafba39dbd4b161f0dbdb14fb6d4243 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2017-01-253-5/+12
|\| | | | | | | | | | | | | | | Conflicts: src/3rdparty tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp Change-Id: I070173576fc4be53689ce0dd9e1fd4133f5814da
| * Make input method hints available via RWHV delegate widgetPeter Varga2017-01-202-0/+2
| | | | | | | | | | | | | | | | | | Moreover, set ImHiddenText hint for password fields and add back the corresponding widget auto test. Task-number: QTBUG-55766 Change-Id: I3f76e19c8c33e11f3d9f515b6dc7d6e998c3c9a4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Doc: Clarify limitations of QNetworkProxyKai Koehne2017-01-181-5/+10
| | | | | | | | | | | | Task-number: QTBUG-58121 Change-Id: I3f7d960d5fabefe219a89cc5fa4752ead965ab0a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devAllan Sandfeld Jensen2017-01-187-36/+118
|\| | | | | | | Change-Id: If16bfc6f0fbfd0040e13a8a3cbaa113fda10f387
| * Merge remote-tracking branch 'origin/5.8.0' into 5.8Allan Sandfeld Jensen2017-01-166-35/+117
| |\ | | | | | | | | | Change-Id: I6b16bee2d0034865270fb26a5ad93da05b9129fa
| | * Doc: Describe WebEngineLoadRequest::errorDomainLeena Miettinen2016-12-222-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the WebEngineLoadRequest property doc from WebEngineView::loadingChanged() method docs and add the type name to create an automatic link to the type docs. Fix a typo in the copied ErrorDomain docs. Change-Id: I9798e066d599c75a062bb7f596e4465f32d613b4 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| | * Doc: Fix article in WebEngineSettings::accelerated2dCanvasEnabled docsLeena Miettinen2016-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | a > an Change-Id: I52cb0b4b7e654d49e864e16fa5270515a73defbe Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Fix QML type name in QML signal signatureLeena Miettinen2016-12-221-1/+1
| | | | | | | | | | | | | | | Change-Id: I1cfa958c02d40f6ac1ec4d3922457d841abc5ea3 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Describe the WebEngineView::navigationRequested() signalLeena Miettinen2016-12-221-0/+4
| | | | | | | | | | | | | | | Change-Id: I78fc7ecd3e453da16e1e2c493ac4b697e4ab5bcc Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Describe default values for WebEngineView::printToPdf()Leena Miettinen2016-12-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The doc does not mention that two out of three parameters have default values and can be left out. Also fix the method signature to use QML conventions. Change-Id: I4c88653ce1fc5890aadce74be878098d16ae274c Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| | * Doc: WebEngineView::runJavaScript() callback parameter is optionalLeena Miettinen2016-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This is currently implied, but not stated. Use the \a command for the callback parameter. Change-Id: I4d593f19362e04f54ae555c75897c50d03c643f7 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Remove return value from qmlsignalKai Koehne2016-12-221-1/+1
| | | | | | | | | | | | | | | Change-Id: Id354b217a1e584c1f1766953cdfc5fc56435daa8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Doc: Describe the WebEngineView.LoadStoppedStatus enum valueLeena Miettinen2016-12-221-0/+3
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-57636 Change-Id: I71aabeb670385037d938ecf130320e2aa8828331 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Fix type name to build FormValidationMessageRequest::type docsLeena Miettinen2016-12-221-1/+1
| | | | | | | | | | | | | | | Change-Id: I518cd1af6a6952c5ed325b51fbf34e312d90f594 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Describe WebEngineDownloadItem.DownloadCancelled enum valueLeena Miettinen2016-12-221-0/+2
| | | | | | | | | | | | | | | Change-Id: I829cd3225858be5c10b00ee5b9c586abb6431111 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Add docs for the WebEngineNavigationRequest typeLeena Miettinen2016-12-221-0/+59
| | | | | | | | | | | | | | | Change-Id: I41d0d286f25aa28b859271d907f226f5740524e0 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Doc: Describe missing WebEngineFullScreenRequest property and methodLeena Miettinen2016-12-221-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The origin property and reject() method were not documented. Remove \since commands, because all the properties and methods were added when the type was added. Change-Id: Ic63e20fca6469b06b65af78963a968df7a236e0d Reviewed-by: Kai Koehne <kai.koehne@qt.io>