aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtWebEngineCore
Commit message (Collapse)AuthorAgeFilesLines
* Adapt to 6.10Friedemann Kleint2025-08-142-0/+5
| | | | | | Task-number: PYSIDE-3011 Change-Id: I0c09b222e68ee0563dc4b0bf07f798f800a63371 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Adapt to 6.9Friedemann Kleint2025-02-062-0/+3
| | | | | | Fixes: PYSIDE-2862 Change-Id: I7cef186d1fb1e1b23cb62daa659db6fab2f460d9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix trailing empty linesFriedemann Kleint2024-12-131-1/+0
| | | | | | Pick-to: 6.8 Change-Id: I1a5964463f703ade0657816cb974206355a5ae5b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* limited api: Remove PyTuple_GET_ITEM, PyTuple_SET_ITEM, and PyTuple_GET_SIZE ↵Cristián Maureira-Fredes2024-11-081-4/+4
| | | | | | | | | | | macros Removing old macros for compatibility with the limited api, and refactoring some of their usages Change-Id: I33954199d2ef9884c64b963863b97aed851c440f Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add QWebEngineDesktopMediaRequestFriedemann Kleint2024-11-042-6/+6
| | | | | | | | | | | | | | | | | | It was still commented out due to not being present in the 6.7 snapshot used for adaption in a2486060f78a42739d88a460b47f23b0c75b4a79. Remove private class QWebEngineMediaSourceModel. It needs to be a value type since it is used in signal QWebEnginePage.desktopMediaRequested(const QWebEngineDesktopMediaRequest &), but has no default constructor. This is normally not supported but works due to it not being used in any other API. Task-number: PYSIDE-2497 Fixes: PYSIDE-2913 Pick-to: 6.8 Change-Id: Ifaf6bd11988e802b245b33724b1b0b071f7e098a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add QWebEngineFrameFriedemann Kleint2024-10-084-0/+85
| | | | | | | | | | | | QWebEngineFrame is used like a value type (stored in QList, etc), but does not have a default-constructor. Hack around by by adding a function returning a default-constructed instance using a struct with the same data members. Task-number: PYSIDE-2620 Pick-to: 6.8 Change-Id: Id792a47fa9cc3f3c55eb1e52c06d01e03a104a74 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Re-add QWebEnginePage::printToPdf()Friedemann Kleint2024-10-083-0/+30
| | | | | | | | It somehow got lost in the Qt 5 to 6 transition. Pick-to: 6.8 Change-Id: I53eb13b516d51a907cf9dd247a735103ec91375d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add QWebEnginePermissionFriedemann Kleint2024-10-072-0/+6
| | | | | | Task-number: PYSIDE-2620 Change-Id: I815941a65c9b96c21f98eab4ef671124d8f410bc Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add documentation for QWebEnginePage's added functionsFriedemann Kleint2024-10-071-0/+16
| | | | | | Fixes: PYSIDE-2883 Change-Id: I56733c7b2bb3e573084ba0b281ad48e7fc6da5f7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Fix overloads of QWebEnginePage::runJavaScript()Friedemann Kleint2024-10-074-2/+83
| | | | | | | | | | | | | | | | | | | | | | Adapt them to C++, where: void QWebEnginePage::runJavaScript(QString scriptSource, std::function<void (QVariant)> resultCallback) and void QWebEnginePage::runJavaScript(QString scriptSource, quint32 worldId = 0, std::function<void (QVariant)> =resultCallback = {}) exist. Introduce a functor as static source to be able to share code with other classes to be added. Task-number: PYSIDE-2883 Change-Id: I61f913a38e761df18ce5a5f3ea43478b7dceace2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Move snippets of QWebEnginePage to qtwebenginecore.cppFriedemann Kleint2024-10-071-4/+8
| | | | | | | | | The class has been moved in Qt 6. Task-number: PYSIDE-2883 Task-number: PYSIDE-946 Change-Id: I81ededa9d4eb1fb1a03249266f48cc65c84a6b02 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add parameter names to QWebEnginePage's added functionsFriedemann Kleint2024-10-071-4/+4
| | | | | | | | | | As a drive-by, change the callbacks to PyCallable* and remove the parameter checks from the snippets. Task-number: PYSIDE-2883 Task-number: PYSIDE-946 Change-Id: I3986d2eced9606c71a3071755dce935b30cd67a5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/Documentation: Introduce a doc-package typesystem attributeFriedemann Kleint2024-09-271-1/+1
| | | | | | | | | | | | | | | Make it possible to specify an alternate doc-package for locating the WebXML files generated by qdoc. For example the documentation of the QtMultimediaWidgets module is generated into the QtMultimedia module. This became a problem after the module split qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: I09ab50f7e3b56c0a7d0f2e94e593a8d5e83b2001 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Adapt to 6.8Friedemann Kleint2024-09-052-0/+6
| | | | | | | Task-number: PYSIDE-2620 Task-number: QTBUG-125719 Change-Id: I6efeb1770c9bd7cddc3dbd91ca6294b9fddc9cc9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add some missing classesFriedemann Kleint2024-04-222-0/+17
| | | | | | | | | | | | Identified by the script added by 1251a23cfd13bb0652f38ef3b36087034f552d57. [ChangeLog][PySide6] A number of missing classes have been added. Task-number: PYSIDE-487 Pick-to: 6.7 Change-Id: Ia62aab2578d46f00540856557474bc394669613f Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* shiboken6: Generate Python override code for added virtualsFriedemann Kleint2024-04-221-0/+10
| | | | | | | | | | | | Introduce "Python override" as a special type of user-added function which will cause a function calling a Python override into the native wrapper. This can then be called from a virtual that has a signature which cannot be handled in Python. Fixes: PYSIDE-2602 Pick-to: 6.7 Change-Id: I5fc44ebe3f585078e87d3230d5e6f4faa67a4ee1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Add attributes for global inline namespacesFriedemann Kleint2024-04-081-1/+2
| | | | | | | Pick-to: 6.7 Fixes: PYSIDE-2590 Change-Id: I36ce25bc759cd888f80b797d4f40864c3d2e2a84 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Build system: Clean Qt libraries linked by the modulesFriedemann Kleint2024-04-041-10/+3
| | | | | | | | | | | | | | Only the bound Qt library needs to be linked, it will bring its dependencies. Add explanatory comment for the exceptions (QtTest, QtSql). Pick-to: 6.7 Task-number: PYSIDE-2649 Change-Id: Ib84d37248578a76400d307bb5d050005110677c3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix crash browsing https://outlook.comFriedemann Kleint2024-04-041-1/+1
| | | | | | | | | | | | | | | A crash occurs when calling QWebEngineRegisterProtocolHandlerRequest.origin() from a signal handler of QWebEngineRegisterProtocolHandlerRequest(QWebEngineRegisterProtocolHandlerRequest). QWebEngineRegisterProtocolHandlerRequest needs to be a value type for this to work. Fixes: PYSIDE-2663 Pick-to: 6.7 6.7.0 6.6 6.5 Change-Id: Iab8c7cb5822455a35c5759137db20b064cb468cc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Long live PyObjectHolderFriedemann Kleint2024-03-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a class PyObjectHolder for passing around Python objects in C++. It is mainly intended for callables. There are some cases in which callables are invoked several times or not at all. The usual construct of passing a lambda which decrefs the callable after the invocation only works in the case when there is exactly one single shot invocation. Otherwise, the callable leaks if there is no invocation or a crash occurs on multiple invocation due to repeated decref. To fix this, introduce a class PyObjectHolder which holds a PyObject with a reference and implements move/copy semantics as well as destruction with the GIL held. It serves as a base class for functors which implement a call operator for the invocation. For the singleshot case, release() can be called after the invocation as not to unnecessarily delay the release. Port over the known cases where multiple invocation is documented to occur to use it. Change-Id: I2f4c7d497d4be8e48946f77a5a40dc9712dc05dd Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Adapt to Qt 6.7Friedemann Kleint2024-02-282-1/+17
| | | | | | Task-number: PYSIDE-2497 Change-Id: Id506616710ba06851401cf62511e49967acde71e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Fix some generation warnings about enumsFriedemann Kleint2023-05-121-0/+3
| | | | | | | | | | Some modules pull in QtNetwork/QtQml via their Depends headers although it is only a private/link dependency. Suppress warnings about the enums. Pick-to: 6.5 Change-Id: I35d75ca538bb770294e434b83233600462805e99 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Reject some internal namespacesFriedemann Kleint2023-05-121-0/+2
| | | | | | | | This reduces noise in the log files. Pick-to: 6.5 Change-Id: I0c8c98859058d9bbef26f71da83918490099a318 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add QWebEngineFileSystemAccessRequestFriedemann Kleint2023-03-302-0/+8
| | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I6ebb82b93df4dc31083adc209190fab4dcc4299b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add the QtWebEngine version functionsFriedemann Kleint2023-03-291-0/+4
| | | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I3bbbc063525d6cb2b4a30281915578b36fbe6bbb Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add license headers to cmake filesFriedemann Kleint2023-02-161-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Task-number: QTBUG-105718 Task-number: QTBUG-88621 Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4, completionChristian Tismer2022-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | The list of IntEnum was not including the extra modules. We now installed and checked PyQt6 PyQt6-3D PyQt6-Charts PyQt6-DataVisualization PyQt6-NetworkAuth PyQt6-WebEngine and found two omissions by that. Change-Id: I891d1771bdab6f53b6bd61de09109465fbb31735 Task-number: PYSIDE-1735 Pick-to: 6.3 6.4 Fixes: PYSIDE-2110 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Remove obsolete "since" tags from typesystemFriedemann Kleint2022-11-021-2/+2
| | | | | | Pick-to: 6.4 6.2 Change-Id: Id7f1c8923eb8612771863893ab159d3434ca5041 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Typesystem: Add includes required to be able to forward-declare classes in ↵Friedemann Kleint2022-10-311-0/+3
| | | | | | | | | | the module header Pick-to: 6.4 Task-number: PYSIDE-2099 Change-Id: I4607a6a224f194edadf25a9aa2d27b3eca0dede2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* webenginecore - QtWebEngineProfile setNotificationPresenterShyamnath Premnadh2022-05-181-0/+3
| | | | | | | | | | | - added setNotificationPresenter(...) - added QtWebEngineWidgets Notifications example which uses setNotificationPresenter Task-number: PYSIDE-1912 Pick-to: 6.3 Change-Id: Ib8fdf7879d6e54bcae47dcc89be6bd5a861a8846 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* webenginecore: QWebEngineCookieStore setCookieFilterShyamnath Premnadh2022-05-172-1/+8
| | | | | | | | | - added tests for the setCookieFilter(...) Task-number: PYSIDE-1912 Pick-to: 6.3 Change-Id: I484725072195846e7777fc577d167ff9ed374d59 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Fix crashes in WebEngine signal emissionsFriedemann Kleint2022-01-111-3/+3
| | | | | | | | | | | | | There seems to be a problem with signals with object type parameters. Change QWebEngineCertificateError and QWebEngineFullScreenRequest (gadgets) to be value types. Pick-to: 6.2 Fixes: PYSIDE-1768 Fixes: PYSIDE-1769 Change-Id: I9863f9e26a9a7bf7751369057fcad6eb10798817 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: API Adaptions for 6.2Friedemann Kleint2021-09-211-2/+0
| | | | | | | | | Add missing enum QLocalSocket::SocketOption and remove obsolete enums and functions. Task-number: PYSIDE-1570 Change-Id: I2d89e116d2360fd49dac0343acf1e85d2442e5e1 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add QWebEnginePage::setWebChannel(QWebChannel*,quint32)Friedemann Kleint2021-09-212-1/+7
| | | | | | | | | Make QtWebChannel a dependency of QtWebEngineCore to expose the method. Fixes: PYSIDE-1663 Change-Id: I5b70976f68c1b863582897a648ec7446af9f982b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6/QtWebEngine: Adapt to changes in findText() APIsFriedemann Kleint2021-07-202-0/+3
| | | | | | | Adapt to qtwebengine/56b1f53d9b2927f5ba2a73f85cee59e385bf489d. Change-Id: I977c4807ae568934b8c8d35647ea131c2f3b511b Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6/QtWebEngine: Add further classesFriedemann Kleint2021-07-072-0/+20
| | | | | | Task-number: PYSIDE-1570 Change-Id: If6d97e75a983793085b33622cd99c3715db6df3d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Re-add QtWebEngine, initial stepFriedemann Kleint2021-06-232-6/+97
| | | | | | | | | | | Remove module QtWebEngine. Move most API from QtWebEngineWidgets to QtWebEngineCore. Adapt imports in tests and examples. The new module QtWebEngineQuick will be added in a follow-up step. This is not functional yet as examples crash in the underlying 6.2 Alpha. Task-number: PYSIDE-1570 Change-Id: I00907e5542404560967e6ae07d102193f1f1e154 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* cmake: update minimum Qt version for 6.0+ compatCristian Maureira-Fredes2021-04-071-6/+1
| | | | | | | | | | Bumping modules compatibility, using 6.0.0 as the base since we the rename from PySide2 took place already, and this code is not supposed to be backward compatible. Pick-to: 6.0 Change-Id: I471b151ef50f5a5974561bf2e619017f7beb621a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-022-0/+116
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>