summaryrefslogtreecommitdiffstats
path: root/src/webengine
Commit message (Collapse)AuthorAgeFilesLines
* Add widget based spellchecker exampleMichal Klocek2016-07-022-0/+6
| | | | | | | | | | This example demonstrates how to convert 'dic' dictionary files into 'bdict' binary format using qwebengine_convert_dict tool. It shows how to implement language selection. It adds two dummy dictionaries. Change-Id: Iffc23a0ed4e51cbc749f666c8f565fafb3739a9b Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add back spellchecking supportMichal Klocek2016-07-028-4/+153
| | | | | | | | | | | | | | This reverts commit: * d364c05de52f9ab39034e56cac4e0a7981dc541d * e507f140b70f464fb970d2f94357ac588dcc4f03 Moreover it fixes shut down of keyed services, updates versioning of and fixes spellcheck unit test context menu request, which otherwise fails on windows. Change-Id: I9bfc589544cb969abd6d2d7af69531b4c5c907b7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix build with newer qtdeclarativeAllan Sandfeld Jensen2016-06-274-4/+8
| | | | | | | | | | What was previous called QSGImageNode is now QSGInternalImageNode Task-number: QTBUG-54312 Change-Id: Iec286765bea5598d86932c81bfd122461a2e9884 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add a DownloadType enum property to WebEngineDownloadItemAdam Kallai2016-06-226-0/+49
| | | | | | | | | | | With this property the user gets the requested download's type. In other words, the user can identify the download where it comes from based on the type. Update public API list as well. Change-Id: I2b066d7eb4df1134266ad67ade0066e3bcc2b454 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-175-17/+27
|\ | | | | | | Change-Id: If4d8a25f5a2192a658d031252435935cbc675725
| * Fix access to deleted memory on QWebEnginePage destructionJoerg Bornemann2016-06-162-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose QWebEnginePage is destroyed while there's still a combobox popup open. We would crash with the following stack trace: 1 QtWebEngineCore::RenderWidgetHostViewQt::dpiScale 2 QtWebEngineCore::RenderWidgetHostViewQt::GetViewBounds 3 content::RenderWidgetHostImpl::SendScreenRects 4 content::RenderWidgetHostImpl::OnRenderViewReady ... 16 base::MessageLoop::DoWork 17 WebEngineContext::destroy 18 `anonymous namespace'::destroyContext 19 qt_call_post_routines 20 QApplication::~QApplication RenderWidgetHostViewQt still holds a pointer to WebContentsAdapterClient. To fix this, expose the QObject owning the adapter client, and hide RenderWidgetHostViewQt when it is destroyed so it won't try to render. Change-Id: Ide5543197b35038a3e1c7491ceda3f5ad10f6f07 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Doc: Make Chromium security fix information less specificLeena Miettinen2016-06-151-2/+2
| | | | | | | | | | | | | | | | New security fixes are added for new Qt 5.6.x versions. Change-Id: Ibf67bde7003b99d729fe8ac23b86c8ff46182ee6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Add missing Q_DECL_OVERRIDE specifiers.Joerg Bornemann2016-06-132-3/+3
| | | | | | | | | | | | | | | | Fixes warnings when building with clang. Task-number: QTBUG-51295 Change-Id: I4ede7e4ea5c1c3924b3bba852834b8066b539825 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix memory leak of qml menuMichal Klocek2016-06-131-12/+12
| | | | | | | | | | | | | | | | | | | | | | Current qml menu implementation uses always WebEngineView as the parent of the menu. However menu can be triggered several times during WebEngineView lifetime, each time creating new menu component. Use onDone menu signal instead to delete menu. Change-Id: I1a6064451e95453268a2cd46899e297e769dc1f1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix memory leak of authentication qml dialogMichal Klocek2016-06-131-0/+3
| | | | | | | | | | Change-Id: I951c78e53ff0e05918daf34076fffc44b813a8d2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Expose WebEngineProfile.clearHttpCache()Kai Koehne2016-06-142-1/+2
| | | | | | | | | | | | | | | | The method is documented to be available in the QML API, but hasn't been exposed so far. Change-Id: I6f2b8ae132dc10718f1b9181eefeef5c2f2eeed6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-113-6/+9
|\| | | | | | | Change-Id: Ib010ede9756fb02992a3276ae7ec90ef1ab56a00
| * Merge remote-tracking branch 'origin/5.6.1' into 5.6Allan Sandfeld Jensen2016-06-082-2/+1
| |\ | | | | | | | | | Change-Id: Ic2fad2311550860c5a2f83b6f228a7a648131ece
| * | Doc: Add "since" info for the HTML5 geolocation featureLeena Miettinen2016-05-311-0/+2
| | | | | | | | | | | | | | | Change-Id: I5e22ceaf5a8450fb5254278dbcbe6e02ecf51a45 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Doc: Fix linking error to overview instead of front pageLeena Miettinen2016-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "Module" to the overview section titles, to stop links from other modules from leading to the "Qt WebEngine" section in the "Overview" instead of to the Qt WebEngine module front page. Change-Id: I1c571c4edad0bcf9dd05e4dad703f95f39eb579c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * | Doc: Mention linux-g++ and linux-clang as supported mkspecsKai Koehne2016-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-53685 Change-Id: I4bd08196929953a24e96d82eb583014785e6bbf8 Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | Fix documentation of findText()Szabolcs David2016-06-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The findText method only highlights the text and doesn't update the selection. Change-Id: I4b320524535d8fa3b9a8374ad50082f3baaa3ffd Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7Allan Sandfeld Jensen2016-05-314-2/+48
|\ \ \
| * | | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-05-314-2/+48
| |\| | | | | | | | | | | | | | Change-Id: I561c00b3a844ab493a5bf0148a5923662842cf5d
| | * | Disable qtquickcontrols context menu on eglfsMichal Klocek2016-05-302-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt Quick Controls 1 always creates "native" windows for popups, however it does not check if the platform can support creating "native" windows. As a workaround disable context menu until Qt Quick Controls 2 are in place. Task-number: QTBUG-53467 Change-Id: Iea32e19f256f3d7e81a61e23f7da64dfc7ec660d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * | Fix event forwarding when activeFocusOnPress is false.Alexandru Croitor2016-05-261-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a QQuickWebEngineView does not have focus, and activeFocusOnPress is set to false, a user can still partially interact with the view. For instance hovering the mouse over a link would change the cursor, a link can be clicked to go to a different page. Clicking on a text input field would focus the text field, but entering characters will not be possible, because the view does not have QtQuick keyboard focus, and clicking does not give the focus (because activeFocusOnPress is set to false) and this leads to confusing behavior. Thus the fix is to make sure no mouse / keyboard events are forwarded to Chromium if the view has no focus, and activeFocusOnPress is set to false, in order to maintain a more user-friendly behavior. Manually forcing the focus via some user-provided method that calls forceActiveFocus() would allow further proper interaction. Change-Id: I72c3ff69438972b9a93ee2d415fa1d4b44b86cd9 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
| | * | Disabled WebEngine views should not receive focus.Alexandru Croitor2016-05-262-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if a QWebEngineView or a QQuickWebEngineView is disabled using setEnabled(false), after loading a web page, the views are automatically focused, and a user might see a blinking caret in an html input for example, even though the user can't interact with it. Fix consists in not calling the Focus() method whenever a view is disabled. Change-Id: I1014fb5898a5ddf01a4e9b14c3eaf5d4006e5131 Task-number: QTBUG-53159 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
| | * | Doc: Add dependencies to enable linking to Qt modulesLeena Miettinen2016-05-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt Location and Qt Positioning were missing, even though they are linked to in the Qt WebEngine Features topic. Change-Id: I5b5d0deae11735c3097b99e33fa9d75fd9411bdc Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | | Fix crash related to audioMuted and recentlyAudible properties in qml.Alexandru Croitor2016-05-311-8/+16
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the qml properties audioMuted or recentlyAudible are accessed / set on a WebEngineView on application startup, the application will crash due to accessing a null pointer (the web contents adapter is not allocated yet). Add guards against null pointer access, to prevent the crash. Change-Id: I939be9afa093d1889024b2ff9308deb88b9316bf Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Merge remote-tracking branch 'origin/5.7.0' into 5.7Allan Sandfeld Jensen2016-05-317-83/+277
|\ \ \ | | | | | | | | | | | | Change-Id: I00f64f15ec2aee18d8e6c7b5f59dfae49be1cba8
| * \ \ Merge remote-tracking branch 'origin/5.6.1' into 5.7.0Liang Qi2016-05-262-2/+1
| |\ \ \ | | | |/ | | |/| | | | | Change-Id: I01bc98f034ea26414d071fc42fe20bd0b7534b9e
| | * | Doc: Remove repository name from examplesinstallpathAntti Kokko2016-05-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Examples in binary packages now directly match the install path. Change-Id: I701bb08e189ae4e3ebb6cb10118900ce72791e3b Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
| | * | Fix compile issueFrank Meerkoetter2016-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Building qtwebengine failed with Yocto2.1/GCC5.3 with an IMX.6 ARM target. Adding the include fixed the issue. compiling .moc/moc_qquickwebengineview_p.cpp .moc/moc_qquickwebengineview_p.cpp: In static member function 'static void QQuickWebEngineView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': .moc/moc_qquickwebengineview_p.cpp:866:72: error: invalid use of incomplete type 'class QColor' case 15: *reinterpret_cast< QColor*>(_v) = _t->backgroundColor(); break; ^ In file included from /data/projects/fsl-community-bsp/build/tmp/sysroots/wandboard/usr/include/qt5/QtCore/qobject.h:48:0, from /data/projects/fsl-community-bsp/build/tmp/sysroots/wandboard/usr/include/qt5/QtCore/QObject:1, from .moc/../api/qquickwebenginescript_p.h:52, from .moc/../api/qquickwebengineview_p.h:52, from .moc/moc_qquickwebengineview_p.cpp:9: /data/projects/fsl-community-bsp/build/tmp/sysroots/wandboard/usr/include/qt5/QtCore/qmetatype.h:1886:1: note: forward declaration of 'class QColor' Change-Id: If58315d4c0b5087705687ae582ffe86702063937 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Doc: Describe new features in Qt WebEngine 5.7.0Leena Miettinen2016-05-252-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I409dee8a8116a374ee4587f0237a62c38dc51b0c Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Remove harmful spaces in qmake argument helpKai Koehne2016-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I47182d78f9dc8ecb8b4758f3ab739eaf88c04e24 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Doc: Change OpenH264 external link titleLeena Miettinen2016-05-242-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...to avoid collision with an autogenerated section in the licensing topic with the same name. Change-Id: Ia157837828fee835f03e04766d47441332aacaf8 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
| * | | Merge remote-tracking branch 'origin/5.6' into 5.7.0Michael Bruning2016-05-236-82/+195
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/browser_context_adapter.cpp src/core/web_contents_adapter.cpp src/webengine/doc/src/qtwebengine-platform-notes.qdoc tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I768fc954a9a2147fc3669961286163a0a824def3
| | * | Doc: Add a topic listing supported featuresLeena Miettinen2016-05-204-79/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move some features from the platform notes to the new topic. Change-Id: I23bb0593a0e142a18ad4216a03bfe1935965fc10 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | | Document licenses in Qt WebEngineKai Koehne2016-05-234-45/+15400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document the licenses users of Qt WebEngine have to accept. qtwebengine-3rdparty.qdoc is generated using licenses.py: cd src/3rdparty; python chromium/tools/licenses.py --file-template ../../tools/about_credits.tmpl --entry-template ../../tools/about_credits_entry.tmpl credits >../../src/webengine/doc/src/qtwebengine-3rdparty.qdoc Task-number: QTBUG-51812 Change-Id: I568cf592054adb29dad07d43f3685c78cf7b8196 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-202-3/+6
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/browser_context_adapter.cpp src/core/web_contents_adapter.cpp tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I45ee0a33f6316f585555d58fede8072fe514aecf
| * | | Doc: HTTP GET method is always used to load URLsLeena Miettinen2016-05-191-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-53314 Change-Id: I575a740cf0cd6e788c7533f4ec87fc910f1d03fa Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Silence zero-as-null-pointer=constant warningsAllan Sandfeld Jensen2016-05-191-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | This appears to have been added to headerclean and is now preventing us from integrating. Change-Id: I7c25a85c0d62c945d4f4a68f559000fab8c880cc Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | Add missing new certificate error typeAllan Sandfeld Jensen2016-05-132-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the new certificate error CertificateValidityTooLong and adds asserts to ensure this list is kept up to date in future Chromium updates. Change-Id: I6066296c0a09cabcca446f1d0b3e3d458b3f158e Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Update plugin.qmltypes to 1.3Marco Benelli2016-05-131-433/+278
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-53175 Change-Id: Id8bd8ee146f997bbd0cbd68744693adf1e4801a8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | Fix revision of defaultTextEncoding[Changed]Kai Koehne2016-05-131-2/+2
| |/ |/| | | | | | | | | | | Both property and signal actually where already part of QtWebEngine 1.0 Change-Id: I9534f35199a3c70d78f9f42e3ea6b9f3b462d6b6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Remove notifier signals for spellchecking supportTopi Reinio2016-05-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The rest of the spellchecking support was removed with d364c05d. These notifier signals were left behind, and caused them to be documented. Related documentation warnings: qquickwebengineprofile.h:144: warning: No documentation for 'QQuickWebEngineProfile::spellCheckLanguageChanged()' qquickwebengineprofile.h:145: warning: No documentation for 'QQuickWebEngineProfile::spellCheckEnabledChanged()' Change-Id: I3b03f3f22ed984d55c09d6e42a258f961c42c584 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-05-091-4/+56
|\| | | | | | | Change-Id: I2843a633721212850db77c772caf24e0ea82b450
| * Doc: Add build requirements on supported platformsLeena Miettinen2016-05-061-4/+56
| | | | | | | | | | | | Task-number: QTBUG-52733 Change-Id: Id0806db78fd7a87cc78c6b284c2249a7ad203b7b Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Remove spellchecking supportMichal Klocek2016-05-066-141/+1
| | | | | | | | | | | | | | | | Spellchecking API needs a bit more reviews and love. Current API is not intuitive and partly broken. Change-Id: Ie9cd371f38cca2f6b3f56a8699ad874cd332c318 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Doc: Document how dictionaries are loadedMichal Klocek2016-05-041-0/+15
| | | | | | | | | | Change-Id: I366e35b6de0a46be648de3130eb7d8585fc1a694 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Doc: How recentlyAudibleChanged and setMuted interactLeena Miettinen2016-05-041-2/+16
| | | | | | | | | | | | | | Task-number: QTBUG-52971 Change-Id: Iae1501a49f57a140eaedb0ca446aacc67f207c9e Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Combine candidate icons for a page into a single iconPeter Varga2016-05-042-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | For the Widget API the QIcon returned by QWebEnginePage::icon() function contains all the candidate icons for the current page. For the Quick API the QQuickWebEngineFaviconProvider provides the best quality icon for the requested size from the candidates. Task-number: QTBUG-51179 Change-Id: I42b8427f957e2f2fc745dd0111bedcc71b577216 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Remove availableDictionaries from spellcheck apiMichal Klocek2016-05-042-26/+0
| | | | | | | | | | | | | | | | | | | | | | This method is broken, since SpellcheckerService is lazily initialized and dictionaries might be not loaded yet. Moreover there is a missing implementation on mac. Instead log warning when SpellcheckService can not load dictionary. Change-Id: Ifa2e769d83307543fa6cdf529475e9ab980022f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7Allan Sandfeld Jensen2016-05-031-1/+1
|\ \
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-04-291-1/+1
| |\| | | | | | | | | | Change-Id: I922e637ffbf03aa15711fa5d0e10ecd4f25448ab