summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Block setCookie() calls with empty domain or nameHEADdevKaloyan Chehlarski21 hours2-1/+16
| | | | | | | These are invalid according to the web standards. Change-Id: I88e973cde0726e3657f081c1e14f9ad20043bbfb Reviewed-by: Moss Heim <moss.heim@qt.io>
* Tests: Add Quick runJavaScript testKaloyan Chehlarski21 hours1-0/+11
| | | | | | | | | This was never tested for in the old C++ Quick tests Pick-to: 6.11 Task-number: QTBUG-131837 Change-Id: I151be765799946c7914acba539371db4e3521a6d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Tests: Rewrite Quick tests in QMLKaloyan Chehlarski22 hours15-766/+391
| | | | | | | | | Also removes unused html and jpg files Pick-to: 6.11 Task-number: QTBUG-131837 Change-Id: I2a098cef62fa98e467d4e0489960bc87ea773bdb Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Change override of WebViewClient.onReceivedErrorMate Barany8 days1-5/+8
| | | | | | | | | | | | | | The override using Webview, int, String, String was deprecated in API level 23. Use the override with WebView, WebResourceRequest, WebResourceError instead. Note, that the new override will be called for any resource, not just for the main page. Task-number: QTBUG-133929 Pick-to: 6.11 Change-Id: Iafb6930d2b4420da391fef7827de292c2b6bf322 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Change override of WebViewClient.shouldOverrideUrlLoadingMate Barany9 days1-3/+4
| | | | | | | | | | | The override taking a WebView and a String was deprecated in API level 24, the override taking a WebView and WebResourceRequest should be used instead. Task-number: QTBUG-133929 Pick-to: 6.11 Change-Id: Iabe4eb51dd90897b390f05be5ff71b6f956a0305 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Remove call to deprecated method setPluginState()Mate Barany10 days1-1/+0
| | | | | | | | | | | | | This method was deprecated in API level 18. Plugins are not supported in API level Build.VERSION_CODES.KITKAT or later; enabling plugins is a no-op. (KITKAT: released publicly as Android 4.4 in October 2013.) Task-number: QTBUG-133929 Pick-to: 6.11 Change-Id: I42864030965c73dc99e28a0b2560d1d9e5e1eb8e Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Remove deprecated method removeExpiredCookie()Mate Barany10 days1-1/+0
| | | | | | | | | | This method was deprecated in API level 21, the Webview handles removing expired cookies automatically. Task-number: QTBUG-133929 Pick-to: 6.11 Change-Id: I9804e085795e0898e6cbca132abf6b45ea198f76 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Add CONTRIBUTING.md fileKai Köhne2026-04-223-2/+15
| | | | | | | Point potential contributors to contribute.qt-project.org. Change-Id: If82a943a0b3ea1c0aafa50be772f4a8cc53ba54c Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Android, Darwin: Actually emit urlChanged signalsKaloyan Chehlarski2026-04-213-2/+8
| | | | | | | | | | | Seems this got lost during the 6.11 refactoring, and tests were only checking for loadingChanged() signals. Also add a check to tst_qwebview. Fixes: QTBUG-145858 Pick-to: 6.11 Change-Id: I7f6615e8850f4b498cde916dc3bb00d4be911616 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-04-211-2/+2
| | | | | Change-Id: I2e5259829cb118ffd22c50a0e2e609dc8408b07a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* darwin: Remove obsolete version checks for macOS/iOSVladimir Belyavsky2026-04-151-35/+3
| | | | | | | | | | | | | | | Since Qt 6.10, the minimum deployment targets are macOS 13 (SDK 14) and iOS 17. Remove version checks and dead code paths: - #if QT_MACOS_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(101300, 110000) and the fallback URL scheme list — use WKWebView.handlesURLScheme unconditionally - #if QT_MACOS_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(110000, 140000) and the deprecated javaScriptEnabled preference — use allowsContentJavaScript unconditionally Change-Id: I59517bed6443a5d4780b0d5678c271b4706264db Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CMake: add cmake specific .gitignoreAssam Boudjelthia2026-04-141-0/+12
| | | | | | Pick-to: 6.11 Change-Id: I1cc0b8f9d5273ed08d7f9fec3556a114c3874866 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Enable strict mode 6.11 in qtwebviewKaloyan Chehlarski2026-04-141-3/+1
| | | | | | | | | | Replaces several individual macros that disable undesirable API usage, and replaces them with the catch-all QT_ENABLE_STRICT_MODE_UP_TO. Fixes: QTBUG-145308 Pick-to: 6.11 Change-Id: Ib808e4aeff31aa938845c7f197b37cf2f42737ee Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Android: add missing version number to Android JARAssam Boudjelthia2026-04-072-4/+3
| | | | | | | | | All other modules have the Qt major version in the Jar name, so should this. Pick-to: 6.11 6.8 Change-Id: I9dcbca19f8dac324dfa2871746dc747989440e6a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-301-2/+2
| | | | | Change-Id: I9a941c6c3e04b9b51a2a8baa8e7ff5cace724b45 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-271-2/+2
| | | | | Change-Id: I673cada38580e2bb73b74611d2440710ec1dd658 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-261-2/+2
| | | | | Change-Id: Ieac637b6cd9c7a8e2fc321fa8f0ab18ad8ff360a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-241-2/+2
| | | | | Change-Id: Iddf60899645a064b4699fb93c85304181162ddde Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-191-2/+2
| | | | | Change-Id: I7d5010b12b9b300ed7ea94e1e895306b5041c48a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-171-2/+2
| | | | | Change-Id: Ia140f9bc331bd90b52354bb4548bf89047cae77c Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-131-2/+2
| | | | | Change-Id: I0fb77e40e87bdb5ccd638a427878d788f85644a4 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-121-2/+2
| | | | | Change-Id: I8cafc274da282a7a1d6ebd3f6258e233cbbe59e0 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Doc: Add alternate text for Qt WebView imagesJerome Pasion2026-03-112-1/+4
| | | | | | | | | Alternate text (alt text) improves the documentation experience for screen readers and for other accessibility tools. Task-number: QTBUG-135098 Change-Id: I1bbd70b2c7f578994bc0d75c4c80c9ad223330e6 Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
* configure: Add missing qt_cmdline.cmake chain entriesJoerg Bornemann2026-03-111-0/+2
| | | | | | | | | | Add the missing qt_commandline_subconfig(src/webview) entry and src/webview/qt_cmdline.cmake so that src/webview/configure.cmake is reachable via the qt_cmdline.cmake traversal chain. Pick-to: 6.11 Change-Id: Ib2a16259cdf026fd7c55c3e0b234fb1216a19110 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-03-101-2/+2
| | | | | Change-Id: Ie4d79db30724d5a60297fc84350c91e1b6e68ef5 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Remove Q_GADGET from QWebView2WebView classKaloyan Chehlarski2026-02-181-1/+0
| | | | | | | | We don't need the declaration in this class. Pick-to: 6.11 Change-Id: Ic42ba04674e130e1cc117495c17efcf595f80a7e Reviewed-by: Moss Heim <moss.heim@qt.io>
* WebEngine backend: Print warning when calling setAllowFileAccess()Kaloyan Chehlarski2026-02-181-0/+1
| | | | | | Pick-to: 6.11 Change-Id: I794feb3caa9f4029d33c1d3000dddcc136b1ef0d Reviewed-by: Moss Heim <moss.heim@qt.io>
* WebEngine backend: Make local storage setting functionalKaloyan Chehlarski2026-02-181-3/+4
| | | | | | | | | | | | | "Enabling" local storage actually made the underlying profile off-the-record, which achieves the opposite. But the setting didn't work in the other direction, either, since we were never setting a storage name for the profile. This patch fixes that, using the application name as the storage name. Pick-to: 6.11 Change-Id: I34b061b85603e29f736641ce11e7140e951d3ff3 Reviewed-by: Moss Heim <moss.heim@qt.io>
* QWebViewSettings: add magic scoped enum Q_CLASSINFOMarc Mutz2026-02-181-0/+1
| | | | | | | | | | | | QWebViewSettings contains a scoped enum (WebAttribute), so, we also need to add the magic Q_CLASSINFO to prevent the scoped enum from becoming unscoped in QML. Found in API-review. Pick-to: 6.11 Change-Id: I4addd832d362031829f164e2c8ceaf5db62a67f6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QWebViewLoadingInfo: add magic scoped enum Q_CLASSINFOMarc Mutz2026-02-181-0/+1
| | | | | | | | | | | | QWebViewLoadingInfo contains a scoped enum (LoadStatus), so, we also need to add the magic Q_CLASSINFO to prevent the scoped enum from becoming unscoped in QML. Found in API-review. Pick-to: 6.11 Change-Id: I3cef27f241159b3bd91237eecc885f262a90bbc6 Reviewed-by: Kaloyan Chehlarski <kaloyan.chehlarski@qt.io>
* QWebView: mark private ctor as explicitMarc Mutz2026-02-181-1/+1
| | | | | | | | | | | | A QWebViewFactory::Hint is not a faithful representation of a web-view, so the corresponding ctor should be explicit (even if it's private). Found in API-review. Pick-to: 6.11 Change-Id: I1fe841d7de05c9c9cfe67e00ed192215ad236871 Reviewed-by: Kaloyan Chehlarski <kaloyan.chehlarski@qt.io>
* QWebView: proactively reimplement event()Marc Mutz2026-02-182-0/+9
| | | | | | | | | | | | | Every QObject subclass should do it, to provide a life-line for event handling, since new overrides of virtual functions may not be called by code that was compiled against a class definition in which the override was absent. Found in API-review. Pick-to: 6.11 Change-Id: I83e3f2a06c5ca8206f2c93f1bbaf51bdd1464bb2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Disable QWebViewSettings copyingMarc Mutz2026-02-181-0/+1
| | | | | | | | | | | | It's a polymorphic class, so it shouldn't be copyable. It wasn't, back when it was a QObject, but now that it no longer is-a QObject, we need to manually disable copy and move SMFs. Found in API-review. Pick-to: 6.11 Change-Id: Id15eeb6706bb82c4a28d49b6e7c232e4edb17139 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* QWebViewSettings: Use Non-virtual Interface patternMarc Mutz2026-02-1813-29/+42
| | | | | | | | | | | | | | | This keeps indirect calls out of user code and allows to drag common code out of the virtual overrides and into the public non-virtual function, if needed. As a drive-by, remove over-qualification of the enum name with the base class scope. Found in API-review. Pick-to: 6.11 Change-Id: Idbaab31a3bbd5510aa1f72dcc2c15195037af414 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* QWebViewSettings: Remove unnecessary Q_GADGET declarationsKaloyan Chehlarski2026-02-187-7/+0
| | | | | | | | | We only need the one in the public API, as Q_ENUM doesn't function without it. Pick-to: 6.11 Change-Id: Ia1a0c44cc2bc5e117f1bf6638582e8c7f1227280 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Manually update webengine dependency to unblock CIMarc Mutz2026-02-171-1/+1
| | | | | | | | | qtwebengine/254c903b3c2c5af91c57f83c5bf6f0fc4d37aade contains the fix that makes qtwebview build again, so manually bump the dependency, to hopefully unblock CI runs in this module. Change-Id: I970c19434aa1fbb8a8332f1e1ce6eb0844253817 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Http user agent string API review cleanupAllan Sandfeld Jensen2026-02-147-19/+20
| | | | | | | | | | Make the setter a slot, and change the name to httpUserAgentString. Found in API-review. Pick-to: 6.11 Change-Id: I5c3b752af578b24f8f7159cc6b9ef3d154beaca7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QWebView: make setUrl() a slotMarc Mutz2026-02-131-1/+1
| | | | | | | | | | | Q_PROPERTY setters with common argument types are usually slots in Qt. setUrl() wasn't. Make it one. Found in API-review. Pick-to: 6.11 Change-Id: Ia0fbca84fb42f931c1ac20ca594da4dcc45d640b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* WebViewBrowser: Add keyboard shortcuts to actionsKaloyan Chehlarski2026-02-131-0/+6
| | | | | | | | Adds shortcuts for back, forward, stop, and reload Pick-to: 6.11 Change-Id: I4a9d7d3d242e125eee83d2c1554dc73a6727de35 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* WebViewBrowser: Put progress bar above web contentKaloyan Chehlarski2026-02-131-4/+12
| | | | | | | | | | | ...and stop using private API. This adds a new dummy QWidget which we use to add a QVBoxLayout to. That layout then puts the progress bar at the very top, and the QWebView right below it. Pick-to: 6.11 Change-Id: Ib9445a034e85ed16fe6da3026c051ee337b63284 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add settings to C++ exampleKaloyan Chehlarski2026-02-132-0/+47
| | | | | | | | | Adds a settings dropdown with checkable settings. Includes code to check if the setting actually took effect. Pick-to: 6.11 Change-Id: Iec15389b7df6a5383a142a023586fa92cebe61dd Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* QWebViewSettings: Remove d-ptr and make [const/dest]ructor privateKaloyan Chehlarski2026-02-1214-57/+46
| | | | | | | | | | | | | | | | | | With this change, QWebViewSettings is an abstract class with private constructor and destructor, so that users can call the API without being able to create, destroy, or inherit the class. QWebViewSettingsPrivate is now its child class, and exists only for the purpose of exposing a public destructor to our own code. The QWebViewPrivate class now stores (and manages the lifetime of) a QWebViewSettingsPrivate, which it receives from the backend. As a side effect, QWebViewSettingsPrivate is also no longer a QObject, which simplifies its construction in the backend code. Pick-to: 6.11 Change-Id: Ie5e2a9daeef6bb3719aa28dad9501311aeb5bc16 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-02-111-2/+2
| | | | | Change-Id: I7f7c43f5de50cf294d19b369a06470e78efe789b Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Android: Add extern "C" to JNI_OnLoad to prevent name manglingAssam Boudjelthia2026-02-101-1/+1
| | | | | | | | | While not causing issues today, name mangling could lead to a problem in the future. Pick-to: 6.11 Change-Id: I1efa8477edce3d34c306ab0ad6f078eb1a7f8a79 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Remove canGoForward/Back propertiesMoss Heim2026-02-092-6/+2
| | | | | | | | Not related to the notify signal Pick-to: 6.11 Change-Id: I2678fa5d36c016ccfc396e94f27608d297164b23 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Docs: Fix broken linkMoss Heim2026-02-091-1/+1
| | | | | | Pick-to: 6.11 Change-Id: I98a25b8c00ea49ee8a79f096a34ac269c3bd615c Reviewed-by: Kaloyan Chehlarski <kaloyan.chehlarski@qt.io>
* Make invokables slotsAllan Sandfeld Jensen2026-02-041-9/+9
| | | | | | | | From API review Pick-to: 6.11 Change-Id: Ib59d459cb802e8d12b65746a26dd18969762e021 Reviewed-by: Kaloyan Chehlarski <kaloyan.chehlarski@qt.io>
* Add C++ exampleKaloyan Chehlarski2026-02-0410-0/+225
| | | | | | | | | | | | | | | | | | | Adds a new example browser utilizing the C++ API. Example shows usage of: - QWidget::createWindowContainer() - setUrl() - back()/forward()/reload()/stop() - isLoading() - loadingChanged signal/QWebViewLoadingInfo - titleChanged signal - loadProgressChanged signal Settings API usage will be added in subsequent commit Task-number: QTBUG-131837 Change-Id: I274d1081651dd86a1a5ee32c14d585f6b7ca1bb5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update dependencies on 'dev' in qt/qtwebviewQt Submodule Update Bot2026-02-041-2/+2
| | | | | Change-Id: I7904a6e7486b3d7cb7a462f15aa928222ee67f14 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Specify underlying type for QWebViewSettings::WebAttributeKaloyan Chehlarski2026-02-031-1/+1
| | | | | | Pick-to: 6.11 Change-Id: Ic82d31aab6ed5226f97e31989bc995d2734af86b Reviewed-by: Moss Heim <moss.heim@qt.io>