summaryrefslogtreecommitdiffstats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix running tests with webengine pluginMichal Klocek2021-06-021-4/+9
| | | | | | | | | | | | | | | | | Adopt test to run also with webengine plugin, so webview can be tested also on dektop. * use QUrl::fromLocalFile for file urls * QWebEngineWebView expects QQuickWebView as parent in case of webenigne plugin, adjust tests and QWebView accessor to qquickwebview * disable error page for webenigne plugin, so tests have same results as for other plugins This patch is a part of cmake port effort. Change-Id: I502bfdc5b6bce8950176d3b20ac35b1e10269393 Reviewed-by: Christian Strømme <[email protected]>
* Android: rename Android's package name for Qt 6Assam Boudjelthia2021-02-121-1/+1
| | | | | | | | | | Rename Android package name org.qtproject.qt5.android to org.qtproject.qt.android to avoid inconsistency with Qt 6 name. Also, we include the major version number in the jar target. Task-number: QTBUG-86969 Change-Id: If887ac62ff480986f70434e5ab898d0bb9f19606 Reviewed-by: Alex Blasche <[email protected]>
* Replace 0 with nullptrAllan Sandfeld Jensen2021-02-023-3/+3
| | | | | Change-Id: I9d225accdf7d7f91efd189588453d2a39f2a11e7 Reviewed-by: Volker Hilsheimer <[email protected]>
* Replace Q_DECL_OVERRIDE with overrideAllan Sandfeld Jensen2021-02-024-90/+90
| | | | | Change-Id: I3ebce12c9b14cd413f06eb36b836b1e10adbbed6 Reviewed-by: Volker Hilsheimer <[email protected]>
* Use QList instead of QVectorJarek Kobus2020-07-311-1/+1
| | | | | | Task-number: QTBUG-84469 Change-Id: I0a6313fb76d99e8424574880527157c0b13ecea6 Reviewed-by: Sona Kurazyan <[email protected]>
* Add ; to Q_UNUSEDLars Schmertmann2020-07-311-18/+18
| | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: Iba7f98e41459f95a4fb6dffd9e6d1996722d92e8 Reviewed-by: Paul Wicking <[email protected]>
* Set the httpUserAgent after the component has been completedAndy Shaw2020-03-201-3/+11
| | | | | | | | | | Since httpUserAgent can be set as a property then it should account for the fact that init() has not yet been called. So ensure that the httpUserAgent is set on the profile created when init() is called. Fixes: QTBUG-82778 Change-Id: I072676e719eedcb0fbc8024f3e902fd1b7073a3e Reviewed-by: Christian Strømme <[email protected]>
* Android: JNI_OnLoad return JNI_VERSION_1_6 instead of JNI_VERSION_1_4Assam Boudjelthia2020-01-201-2/+2
| | | | | | | | Update instance of old code using JNI_VERSION_1_4 to make the code consistent. Change-Id: I7f6d074411b3ab5093e45333279b3bd47492ff61 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
* Add QtWebView::WebView::httpUserAgent propertyArmin Felder2019-05-159-1/+123
| | | | | | | | | The httpUserAgent property allows to get and set the User Agent. Task-number: QTBUG-68746 Change-Id: I12fb5da00b14ecba53e71c532f2c8401f8f2a009 Reviewed-by: Oliver Wolff <[email protected]> Reviewed-by: Christian Strømme <[email protected]>
* iOS: Check if the external browser can open the url firstAndy Shaw2019-01-081-1/+7
| | | | | | | | | | | | | If the external browser cannot open the url (as can be the case with file schemes) then it should fall back to using the same webview instead so that the link is not ignored. [ChangeLog][Platform Specific Changes][iOS] Now opens links with _blank target in the current WebView if the external browser cannot open them. Fixes: QTBUG-63963 Change-Id: Ibd77c82a084d130e034c4d98ba9b08bb5cdf5743 Reviewed-by: Christian Stromme <[email protected]>
* iOS: Keep the navigation object passed into didStart for finishingAndy Shaw2018-11-292-26/+26
| | | | | | | | | | Instead of relying on the different frames to fail or finish as this is not reliable in iOS 12 we check if the navigation object passed into didFinish is the last one we got in didStart. At that point we can assume that the page has in fact finished loading. Change-Id: I06c20863b27a384d3532c06a18723ad5d3347363 Reviewed-by: Christian Stromme <[email protected]>
* Fix missing dependency for webenginecoreMichal Klocek2018-06-181-1/+1
| | | | | | | | WebEngine plugin has also private dependency to webenginecore. Task-number: QTBUG-68945 Change-Id: I96f317bc4d2ba54c56c0d8a875b6e4045de0d8e1 Reviewed-by: Christian Stromme <[email protected]>
* Darwin: open links with target="_blank" externallyv5.11.0-beta4Jason Erb2018-04-051-0/+4
| | | | | | | | | Without this change, such links do not open at all. Task-number: QTBUG-67293 Change-Id: I15e7944dc75271948c6356ac9f949333039b9671 Reviewed-by: Oliver Wolff <[email protected]> Reviewed-by: Andy Shaw <[email protected]>
* Darwin: Implement didFailNavigation to handle when an error occursv5.11.0-beta3Andy Shaw2018-03-211-12/+27
| | | | | | | | | | | When an error occurs during navigation then didFailNavigation will be called. As didFailProvisionalNavigation is not called in this case then we need to handle it in the same way to ensure the request count is correctly decremented. Change-Id: Ib0bab408c4d8a54a1f1e7e0b1c3832f05cd10f65 Reviewed-by: Timur Pocheptsov <[email protected]> Reviewed-by: Christian Stromme <[email protected]>
* Remove AppKit dependency from iOSv5.11.0-beta2v5.11.0-beta1Jason Erb2018-02-231-1/+2
| | | | | | Task-number: QTBUG-66552 Change-Id: Ic5f4947a6da425e229e66b293f0c156b1049ef3f Reviewed-by: Christian Stromme <[email protected]>
* Remove obsolete code pathsJake Petroules2018-02-121-8/+4
| | | | | Change-Id: I0608503fd0db30bf409893cab754b66952210eff Reviewed-by: Gabriel de Dietrich <[email protected]>
* winrt: Launch default program if unviewable content is loadedOliver Wolff2018-02-012-0/+23
| | | | | | | | | | | If a file type that cannot be shown in a webview, is passed via setUrl, the user should be asked what to do/the default program should be opened. This behavior matches what is done, when an unknown URL scheme is passed. Change-Id: Ia318f14d9dcdeb8f3bbb734b342eb38a02fb3dc4 Reviewed-by: Miguel Costa <[email protected]> Reviewed-by: Maurice Kalinowski <[email protected]>
* Make QtWebView plugin basedChristian Stromme2018-01-2621-0/+2605
This removes the hard build dependency to QtWebEngine, which opens up the possibility for QtWebEngine, or others, to provide their own plugin. Another benefit of having the backends loaded at run-time, is that we can provide an alternative for developers that wants to publish their application in the App Store, where shipping QtWebEngine isn't an option, due to store policies, and where we already have an alternative/experimental backend that can be used. [ChangeLog][WebView] QtWebView will now load its backends at run-time. Task-number: QTBUG-63137 Change-Id: I581940fe4c3b5e6bb41896367d3163ac8bc7b6b9 Reviewed-by: Kai Koehne <[email protected]>