Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyQt6-WebEngine for openSUSE:Factory checked in at 2025-01-12 11:19:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyQt6-WebEngine (Old) and /work/SRC/openSUSE:Factory/.python-PyQt6-WebEngine.new.1881 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyQt6-WebEngine" Sun Jan 12 11:19:42 2025 rev:15 rq:1236727 version:6.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyQt6-WebEngine/python-PyQt6-WebEngine.changes 2024-11-09 20:57:53.805236763 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyQt6-WebEngine.new.1881/python-PyQt6-WebEngine.changes 2025-01-12 11:27:18.194879865 +0100 @@ -1,0 +2,9 @@ +Wed Jan 8 16:23:00 UTC 2025 - Ben Greiner <c...@bnavigator.de> + +- Update to 6.8.0 + * Added support for Qt v6.8. +- Use sip-build --concatenate 1 as a workaround for incomplete type + class error + https://www.riverbankcomputing.com/pipermail/pyqt/2024-December/046097.html + +------------------------------------------------------------------- Old: ---- PyQt6_WebEngine-6.7.0.tar.gz New: ---- PyQt6_WebEngine-6.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyQt6-WebEngine.spec ++++++ --- /var/tmp/diff_new_pack.ETeidX/_old 2025-01-12 11:27:18.714901264 +0100 +++ /var/tmp/diff_new_pack.ETeidX/_new 2025-01-12 11:27:18.714901264 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-PyQt6-WebEngine # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %define plainpython python %{?sle15_python_module_pythons} Name: python-PyQt6-%{qtlib} -Version: 6.7.0 +Version: 6.8.0 Release: 0 Summary: Python bindings for the Qt WebEngine framework License: GPL-3.0-only @@ -30,8 +30,8 @@ Source: https://files.pythonhosted.org/packages/source/P/PyQt6-%{qtlib}/PyQt6_%{qtlib}-%{version}.tar.gz BuildRequires: %{python_module PyQt6-devel >= 6.2} BuildRequires: %{python_module devel} -BuildRequires: %{python_module pyqt-builder >= 1.11 with %python-pyqt-builder < 2} -BuildRequires: %{python_module sip-devel >= 6.8 with %python-sip-devel < 7} +BuildRequires: %{python_module pyqt-builder >= 1.17 with %python-pyqt-builder < 2} +BuildRequires: %{python_module sip-devel >= 6.9 with %python-sip-devel < 7} BuildRequires: fdupes BuildRequires: python-pyqt-rpm-macros BuildRequires: python-rpm-macros @@ -70,7 +70,8 @@ %autosetup -p1 -n PyQt6_%{qtlib}-%{version} %build -%pyqt_build +# https://www.riverbankcomputing.com/pipermail/pyqt/2024-December/046097.html +%pyqt_build -v -s %{quote:--concatenate 1} %install %pyqt_install ++++++ PyQt6_WebEngine-6.7.0.tar.gz -> PyQt6_WebEngine-6.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/ChangeLog new/PyQt6_WebEngine-6.8.0/ChangeLog --- old/PyQt6_WebEngine-6.7.0/ChangeLog 2024-04-20 18:04:26.300186400 +0200 +++ new/PyQt6_WebEngine-6.8.0/ChangeLog 2024-12-06 15:49:43.735790500 +0100 @@ -1,3 +1,28 @@ +2024-10-24 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS: + Updated the NEWS file. + [33da3a9ed997] [6.8.0] + +2024-10-14 Phil Thompson <p...@riverbankcomputing.com> + + * pyproject.toml: + Updated the build system requirements to SIP v6.9 and PyQt-builder + v1.17. + [2ca014817aec] + +2024-10-04 Phil Thompson <p...@riverbankcomputing.com> + + * PyQt6-WebEngine.msp, mksccode/QtWebEngineCore.versions: + Updated for Qt v6.8.0. + [a921a4c073f6] + +2024-04-20 Phil Thompson <p...@riverbankcomputing.com> + + * .hgtags: + Added tag 6.7.0 for changeset cb8b0faaaac7 + [fc6338be5751] + 2024-04-04 Phil Thompson <p...@riverbankcomputing.com> * NEWS, PyQt6-WebEngine.msp: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/NEWS new/PyQt6_WebEngine-6.8.0/NEWS --- old/PyQt6_WebEngine-6.7.0/NEWS 2024-04-20 18:02:49.714136800 +0200 +++ new/PyQt6_WebEngine-6.8.0/NEWS 2024-12-06 15:48:01.405540000 +0100 @@ -1,3 +1,6 @@ +v6.8.0 24th October 2024 + - Added support for Qt v6.8. + v6.7.0 4th April 2024 - Added support for Qt v6.7. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/PKG-INFO new/PyQt6_WebEngine-6.8.0/PKG-INFO --- old/PyQt6_WebEngine-6.7.0/PKG-INFO 2024-04-20 18:04:26.503033600 +0200 +++ new/PyQt6_WebEngine-6.8.0/PKG-INFO 2024-12-06 15:49:43.947891700 +0100 @@ -1,7 +1,7 @@ Metadata-Version: 2.1 Name: PyQt6-WebEngine -Version: 6.7.0 -Requires-Python: >=3.8 +Version: 6.8.0 +Requires-Python: >=3.9 Summary: Python bindings for the Qt WebEngine framework Description-Content-Type: text/markdown Project-Url: homepage, https://www.riverbankcomputing.com/software/pyqtwebengine/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/pyproject.toml new/PyQt6_WebEngine-6.8.0/pyproject.toml --- old/PyQt6_WebEngine-6.7.0/pyproject.toml 2024-04-20 18:04:26.301065000 +0200 +++ new/PyQt6_WebEngine-6.8.0/pyproject.toml 2024-12-06 15:49:43.736692400 +0100 @@ -1,11 +1,11 @@ # Specify the build system requirements. [build-system] -requires = ["sip >=6.8, <7", "PyQt-builder >=1.11, <2"] +requires = ["sip >=6.9, <7", "PyQt-builder >=1.17, <2"] build-backend = "sipbuild.api" [project] name = "PyQt6-WebEngine" -version = "6.7.0" +version = "6.8.0" description = "Python bindings for the Qt WebEngine framework" readme = "README.md" urls.homepage = "https://www.riverbankcomputing.com/software/pyqtwebengine/" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip 2024-04-20 18:04:26.392469400 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip 2024-12-06 15:49:43.835389000 +0100 @@ -27,7 +27,7 @@ %Import QtNetwork/QtNetworkmod.sip %Import QtWebChannel/QtWebChannelmod.sip -%Timeline {QtWebEngine_6_0_0 QtWebEngine_6_1_0 QtWebEngine_6_2_0 QtWebEngine_6_3_0 QtWebEngine_6_4_0 QtWebEngine_6_5_0 QtWebEngine_6_6_0 QtWebEngine_6_7_0} +%Timeline {QtWebEngine_6_0_0 QtWebEngine_6_1_0 QtWebEngine_6_2_0 QtWebEngine_6_3_0 QtWebEngine_6_4_0 QtWebEngine_6_5_0 QtWebEngine_6_6_0 QtWebEngine_6_7_0 QtWebEngine_6_8_0} %Copying Copyright (c) 2024 Riverbank Computing Limited <i...@riverbankcomputing.com> @@ -54,20 +54,22 @@ const char *PYQT_WEBENGINE_VERSION_STR; %ModuleCode -static int PYQT_WEBENGINE_VERSION = 0x060700; -static const char *PYQT_WEBENGINE_VERSION_STR = "6.7.0"; +static int PYQT_WEBENGINE_VERSION = 0x060800; +static const char *PYQT_WEBENGINE_VERSION_STR = "6.8.0"; %End %Include qtwebenginecoreglobal.sip %Include qwebenginecertificateerror.sip %Include qwebengineclientcertificateselection.sip %Include qwebengineclientcertificatestore.sip +%Include qwebengineclienthints.sip %Include qwebenginecontextmenurequest.sip %Include qwebenginecookiestore.sip %Include qwebenginedesktopmediarequest.sip %Include qwebenginedownloadrequest.sip %Include qwebenginefilesystemaccessrequest.sip %Include qwebenginefindtextresult.sip +%Include qwebengineframe.sip %Include qwebenginefullscreenrequest.sip %Include qwebengineglobalsettings.sip %Include qwebenginehistory.sip @@ -77,6 +79,7 @@ %Include qwebenginenewwindowrequest.sip %Include qwebenginenotification.sip %Include qwebenginepage.sip +%Include qwebenginepermission.sip %Include qwebengineprofile.sip %Include qwebenginequotarequest.sip %Include qwebengineregisterprotocolhandlerrequest.sip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginecertificateerror.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginecertificateerror.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginecertificateerror.sip 2024-04-20 18:04:26.392755300 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginecertificateerror.sip 2024-12-06 15:49:43.835689500 +0100 @@ -58,4 +58,7 @@ QWebEngineCertificateError::Type type() const; QString description() const; void acceptCertificate(); +%If (QtWebEngine_6_8_0 -) + bool isMainFrame() const; +%End }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineclienthints.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineclienthints.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineclienthints.sip 1970-01-01 01:00:00.000000000 +0100 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineclienthints.sip 2024-12-06 15:49:43.831550800 +0100 @@ -0,0 +1,56 @@ +// qwebengineclienthints.sip generated by MetaSIP +// +// This file is part of the QtWebEngineCore Python extension module. +// +// Copyright (c) 2024 Riverbank Computing Limited <i...@riverbankcomputing.com> +// +// This file is part of PyQt6-WebEngine. +// +// This file may be used under the terms of the GNU General Public License +// version 3.0 as published by the Free Software Foundation and appearing in +// the file LICENSE included in the packaging of this file. Please review the +// following information to ensure the GNU General Public License version 3.0 +// requirements will be met: http://www.gnu.org/copyleft/gpl.html. +// +// If you do not wish to use this file under the terms of the GPL version 3.0 +// then you may purchase a commercial license. For more information contact +// i...@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%If (QtWebEngine_6_8_0 -) + +class QWebEngineClientHints : public QObject /NoDefaultCtors/ +{ +%TypeHeaderCode +#include <qwebengineclienthints.h> +%End + +public: + virtual ~QWebEngineClientHints(); + QString arch() const; + QString platform() const; + QString model() const; + bool isMobile() const; + QString fullVersion() const; + QString platformVersion() const; + QString bitness() const; + QVariantMap fullVersionList() const; + bool isWow64() const; + void setArch(const QString &); + void setPlatform(const QString &); + void setModel(const QString &); + void setIsMobile(bool); + void setFullVersion(const QString &); + void setPlatformVersion(const QString &); + void setBitness(const QString &); + void setFullVersionList(const QVariantMap &); + void setIsWow64(bool); + bool isAllClientHintsEnabled(); + void setAllClientHintsEnabled(bool enabled); + void resetAll(); +}; + +%End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineframe.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineframe.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineframe.sip 1970-01-01 01:00:00.000000000 +0100 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineframe.sip 2024-12-06 15:49:43.838095400 +0100 @@ -0,0 +1,129 @@ +// qwebengineframe.sip generated by MetaSIP +// +// This file is part of the QtWebEngineCore Python extension module. +// +// Copyright (c) 2024 Riverbank Computing Limited <i...@riverbankcomputing.com> +// +// This file is part of PyQt6-WebEngine. +// +// This file may be used under the terms of the GNU General Public License +// version 3.0 as published by the Free Software Foundation and appearing in +// the file LICENSE included in the packaging of this file. Please review the +// following information to ensure the GNU General Public License version 3.0 +// requirements will be met: http://www.gnu.org/copyleft/gpl.html. +// +// If you do not wish to use this file under the terms of the GPL version 3.0 +// then you may purchase a commercial license. For more information contact +// i...@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%If (QtWebEngine_6_8_0 -) + +class QWebEngineFrame /NoDefaultCtors/ +{ +%TypeHeaderCode +#include <qwebengineframe.h> +%End + +public: + bool isValid() const; + QString name() const; + QString htmlName() const; + QList<QWebEngineFrame> children() const; + QUrl url() const; + QSizeF size() const; + bool isMainFrame() const; + void runJavaScript(const QString &script, quint32 worldId = 0); + void runJavaScript(const QString &script, SIP_PYCALLABLE callback /TypeHint="Callable[[Any], None]"/); +%MethodCode + // Make sure the callable doesn't get garbage collected until it is invoked. + Py_INCREF(a1); + + Py_BEGIN_ALLOW_THREADS + + sipCpp->runJavaScript(*a0, [a1](const QVariant &arg) { + SIP_BLOCK_THREADS + + PyObject *res; + + res = sipCallMethod(NULL, a1, "N", new QVariant(arg), sipType_QVariant, NULL); + + Py_DECREF(a1); + + if (!res) + pyqt6_qtwebenginecore_err_print(); + else + Py_DECREF(res); + + SIP_UNBLOCK_THREADS + }); + + Py_END_ALLOW_THREADS +%End + + void runJavaScript(const QString &script, quint32 worldId, SIP_PYCALLABLE callback /TypeHint="Callable[[Any], None]"/); +%MethodCode + // Make sure the callable doesn't get garbage collected until it is invoked. + Py_INCREF(a2); + + Py_BEGIN_ALLOW_THREADS + + sipCpp->runJavaScript(*a0, a1, [a2](const QVariant &arg) { + SIP_BLOCK_THREADS + + PyObject *res; + + res = sipCallMethod(NULL, a2, "N", new QVariant(arg), sipType_QVariant, NULL); + + Py_DECREF(a2); + + if (!res) + pyqt6_qtwebenginecore_err_print(); + else + Py_DECREF(res); + + SIP_UNBLOCK_THREADS + }); + + Py_END_ALLOW_THREADS +%End + + void printToPdf(const QString &filePath); + void printToPdf(SIP_PYCALLABLE callback /TypeHint="Callable[[QByteArray], None]"/); +%MethodCode + // Make sure the callable doesn't get garbage collected until it is invoked. + Py_INCREF(a0); + + Py_BEGIN_ALLOW_THREADS + + sipCpp->printToPdf([a0](const QByteArray &arg) { + SIP_BLOCK_THREADS + + PyObject *res; + + res = sipCallMethod(NULL, a0, "N", new QByteArray(arg), sipType_QByteArray, NULL); + + Py_DECREF(a0); + + if (!res) + pyqt6_qtwebenginecore_err_print(); + else + Py_DECREF(res); + + SIP_UNBLOCK_THREADS + }); + + Py_END_ALLOW_THREADS +%End +}; + +%End +%If (QtWebEngine_6_8_0 -) +bool operator!=(const QWebEngineFrame &lhs, const QWebEngineFrame &rhs); +%End +%If (QtWebEngine_6_8_0 -) +bool operator==(const QWebEngineFrame &lhs, const QWebEngineFrame &rhs); +%End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginenavigationrequest.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginenavigationrequest.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginenavigationrequest.sip 2024-04-20 18:04:26.389760300 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginenavigationrequest.sip 2024-12-06 15:49:43.832613000 +0100 @@ -20,7 +20,7 @@ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -class QWebEngineNavigationRequest : public QObject +class QWebEngineNavigationRequest : public QObject /NoDefaultCtors/ { %TypeHeaderCode #include <qwebenginenavigationrequest.h> @@ -44,10 +44,10 @@ QWebEngineNavigationRequest::NavigationType navigationType() const; void accept(); void reject(); +%If (QtWebEngine_6_8_0 -) + bool hasFormData() const; +%End signals: void actionChanged(); - -private: - QWebEngineNavigationRequest(const QUrl &url, QWebEngineNavigationRequest::NavigationType navigationType, bool mainFrame, QObject *parent = 0); }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginepage.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginepage.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginepage.sip 2024-04-20 18:04:26.396153700 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginepage.sip 2024-12-06 15:49:43.839698600 +0100 @@ -116,6 +116,12 @@ MouseLock, DesktopVideoCapture, DesktopAudioVideoCapture, +%If (QtWebEngine_6_8_0 -) + ClipboardReadWrite, +%End +%If (QtWebEngine_6_8_0 -) + LocalFontsAccess, +%End }; enum FileSelectionMode @@ -366,7 +372,7 @@ Py_END_ALLOW_THREADS %End - void runJavaScript(const QString &scriptSource, quint32 worldId = 0, SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[QString], None]"/ = 0); + void runJavaScript(const QString &scriptSource, quint32 worldId = 0, SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[Any], None]"/ = 0); %MethodCode // Make sure the callable doesn't get garbage collected until it is invoked. Py_XINCREF(a2); @@ -475,4 +481,23 @@ %If (QtWebEngine_6_7_0 -) void webAuthUxRequested(QWebEngineWebAuthUxRequest *request); %End + +public: +%If (QtWebEngine_6_8_0 -) + QWebEngineFrame mainFrame(); +%End +%If (QtWebEngine_6_8_0 -) + std::optional<QWebEngineFrame> findFrameByName(QAnyStringView name); +%End + +signals: +%If (QtWebEngine_6_8_0 -) + void permissionRequested(QWebEnginePermission permissionRequest); +%End +%If (QtWebEngine_6_8_0 -) + void zoomFactorChanged(qreal factor); +%End +%If (QtWebEngine_6_8_0 -) + void printRequestedByFrame(QWebEngineFrame frame); +%End }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginepermission.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginepermission.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginepermission.sip 1970-01-01 01:00:00.000000000 +0100 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginepermission.sip 2024-12-06 15:49:43.830808200 +0100 @@ -0,0 +1,76 @@ +// qwebenginepermission.sip generated by MetaSIP +// +// This file is part of the QtWebEngineCore Python extension module. +// +// Copyright (c) 2024 Riverbank Computing Limited <i...@riverbankcomputing.com> +// +// This file is part of PyQt6-WebEngine. +// +// This file may be used under the terms of the GNU General Public License +// version 3.0 as published by the Free Software Foundation and appearing in +// the file LICENSE included in the packaging of this file. Please review the +// following information to ensure the GNU General Public License version 3.0 +// requirements will be met: http://www.gnu.org/copyleft/gpl.html. +// +// If you do not wish to use this file under the terms of the GPL version 3.0 +// then you may purchase a commercial license. For more information contact +// i...@riverbankcomputing.com. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +%If (QtWebEngine_6_8_0 -) + +class QWebEnginePermission +{ +%TypeHeaderCode +#include <qwebenginepermission.h> +%End + +public: + QWebEnginePermission(); + QWebEnginePermission(const QWebEnginePermission &other); + ~QWebEnginePermission(); + void swap(QWebEnginePermission &other); + + enum class PermissionType + { + Unsupported, + MediaAudioCapture, + MediaVideoCapture, + MediaAudioVideoCapture, + DesktopVideoCapture, + DesktopAudioVideoCapture, + MouseLock, + Notifications, + Geolocation, + ClipboardReadWrite, + LocalFontsAccess, + }; + + enum class State + { + Invalid, + Ask, + Granted, + Denied, + }; + + QUrl origin() const; + QWebEnginePermission::PermissionType permissionType() const; + QWebEnginePermission::State state() const; + bool isValid() const; + void grant() const; + void deny() const; + void reset() const; + static bool isPersistent(QWebEnginePermission::PermissionType permissionType); +}; + +%End +%If (QtWebEngine_6_8_0 -) +bool operator==(const QWebEnginePermission &lhs, const QWebEnginePermission &rhs); +%End +%If (QtWebEngine_6_8_0 -) +bool operator!=(const QWebEnginePermission &lhs, const QWebEnginePermission &rhs); +%End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineprofile.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineprofile.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineprofile.sip 2024-04-20 18:04:26.388211700 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineprofile.sip 2024-12-06 15:49:43.830441000 +0100 @@ -38,19 +38,24 @@ sipTypeDef **type; int yes, no; } graph[] = { - {sipName_QWebEngineContextMenuRequest, &sipType_QWebEngineContextMenuRequest, -1, 1}, - {sipName_QWebEngineCookieStore, &sipType_QWebEngineCookieStore, -1, 2}, - {sipName_QWebEngineDownloadRequest, &sipType_QWebEngineDownloadRequest, -1, 3}, - {sipName_QWebEngineHistory, &sipType_QWebEngineHistory, -1, 4}, - {sipName_QWebEngineHistoryModel, &sipType_QWebEngineHistoryModel, -1, 5}, - {sipName_QWebEngineNavigationRequest, &sipType_QWebEngineNavigationRequest, -1, 6}, - {sipName_QWebEngineNewWindowRequest, &sipType_QWebEngineNewWindowRequest, -1, 7}, - {sipName_QWebEngineNotification, &sipType_QWebEngineNotification, -1, 8}, - {sipName_QWebEnginePage, &sipType_QWebEnginePage, -1, 9}, - {sipName_QWebEngineProfile, &sipType_QWebEngineProfile, -1, 10}, - {sipName_QWebEngineUrlRequestInterceptor, &sipType_QWebEngineUrlRequestInterceptor, -1, 11}, - {sipName_QWebEngineUrlRequestJob, &sipType_QWebEngineUrlRequestJob, -1, 12}, - {sipName_QWebEngineUrlSchemeHandler, &sipType_QWebEngineUrlSchemeHandler, -1, 13}, + #if QT_VERSION >= 0x060800 + {sipName_QWebEngineClientHints, &sipType_QWebEngineClientHints, -1, 1}, + #else + {0, 0, -1, 1}, + #endif + {sipName_QWebEngineContextMenuRequest, &sipType_QWebEngineContextMenuRequest, -1, 2}, + {sipName_QWebEngineCookieStore, &sipType_QWebEngineCookieStore, -1, 3}, + {sipName_QWebEngineDownloadRequest, &sipType_QWebEngineDownloadRequest, -1, 4}, + {sipName_QWebEngineHistory, &sipType_QWebEngineHistory, -1, 5}, + {sipName_QWebEngineHistoryModel, &sipType_QWebEngineHistoryModel, -1, 6}, + {sipName_QWebEngineNavigationRequest, &sipType_QWebEngineNavigationRequest, -1, 7}, + {sipName_QWebEngineNewWindowRequest, &sipType_QWebEngineNewWindowRequest, -1, 8}, + {sipName_QWebEngineNotification, &sipType_QWebEngineNotification, -1, 9}, + {sipName_QWebEnginePage, &sipType_QWebEnginePage, -1, 10}, + {sipName_QWebEngineProfile, &sipType_QWebEngineProfile, -1, 11}, + {sipName_QWebEngineUrlRequestInterceptor, &sipType_QWebEngineUrlRequestInterceptor, -1, 12}, + {sipName_QWebEngineUrlRequestJob, &sipType_QWebEngineUrlRequestJob, -1, 13}, + {sipName_QWebEngineUrlSchemeHandler, &sipType_QWebEngineUrlSchemeHandler, -1, 14}, #if QT_VERSION >= 0x060700 {sipName_QWebEngineWebAuthUxRequest, &sipType_QWebEngineWebAuthUxRequest, -1, -1}, #else @@ -243,4 +248,35 @@ %If (QtWebEngine_6_5_0 -) void setPushServiceEnabled(bool enabled); %End +%If (QtWebEngine_6_8_0 -) + + enum class PersistentPermissionsPolicy + { + AskEveryTime, + StoreInMemory, + StoreOnDisk, + }; + +%End +%If (QtWebEngine_6_8_0 -) + QWebEngineProfile::PersistentPermissionsPolicy persistentPermissionsPolicy() const; +%End +%If (QtWebEngine_6_8_0 -) + void setPersistentPermissionsPolicy(QWebEngineProfile::PersistentPermissionsPolicy); +%End +%If (QtWebEngine_6_8_0 -) + QWebEngineClientHints *clientHints() const /Transfer/; +%End +%If (QtWebEngine_6_8_0 -) + QWebEnginePermission queryPermission(const QUrl &securityOrigin, QWebEnginePermission::PermissionType permissionType) const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listAllPermissions() const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listPermissionsForOrigin(const QUrl &securityOrigin) const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listPermissionsForPermissionType(QWebEnginePermission::PermissionType permissionType) const; +%End }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginesettings.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginesettings.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebenginesettings.sip 2024-04-20 18:04:26.398051700 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebenginesettings.sip 2024-12-06 15:49:43.841639300 +0100 @@ -109,12 +109,26 @@ void resetAttribute(QWebEngineSettings::WebAttribute attr); void setDefaultTextEncoding(const QString &encoding); QString defaultTextEncoding() const; - -private: - explicit QWebEngineSettings(QWebEngineSettings *parentSettings = 0); - -public: QWebEngineSettings::UnknownUrlSchemePolicy unknownUrlSchemePolicy() const; void setUnknownUrlSchemePolicy(QWebEngineSettings::UnknownUrlSchemePolicy policy); void resetUnknownUrlSchemePolicy(); +%If (QtWebEngine_6_8_0 -) + + enum class ImageAnimationPolicy + { + Allow, + AnimateOnce, + Disallow, + }; + +%End +%If (QtWebEngine_6_8_0 -) + void setImageAnimationPolicy(QWebEngineSettings::ImageAnimationPolicy policy); +%End +%If (QtWebEngine_6_8_0 -) + QWebEngineSettings::ImageAnimationPolicy imageAnimationPolicy() const; +%End +%If (QtWebEngine_6_8_0 -) + void resetImageAnimationPolicy(); +%End }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip 2024-04-20 18:04:26.389078600 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip 2024-12-06 15:49:43.831941000 +0100 @@ -53,6 +53,9 @@ %If (QtWebEngine_6_4_0 -) ResourceTypeWebSocket, %End +%If (QtWebEngine_6_8_0 -) + ResourceTypeJson, +%End }; enum NavigationType diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineQuick/qquickwebengineprofile.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineQuick/qquickwebengineprofile.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineQuick/qquickwebengineprofile.sip 2024-04-20 18:04:26.386633400 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineQuick/qquickwebengineprofile.sip 2024-12-06 15:49:43.828734600 +0100 @@ -147,4 +147,42 @@ %If (QtWebEngine_6_7_0 -) void clearHttpCacheCompleted(); %End + +public: +%If (QtWebEngine_6_8_0 -) + + enum class PersistentPermissionsPolicy + { + AskEveryTime, + StoreInMemory, + StoreOnDisk, + }; + +%End +%If (QtWebEngine_6_8_0 -) + QQuickWebEngineProfile::PersistentPermissionsPolicy persistentPermissionsPolicy() const; +%End +%If (QtWebEngine_6_8_0 -) + void setPersistentPermissionsPolicy(QQuickWebEngineProfile::PersistentPermissionsPolicy); +%End +%If (QtWebEngine_6_8_0 -) + QWebEngineClientHints *clientHints() const /Transfer/; +%End +%If (QtWebEngine_6_8_0 -) + QWebEnginePermission queryPermission(const QUrl &securityOrigin, QWebEnginePermission::PermissionType permissionType) const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listAllPermissions() const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listPermissionsForOrigin(const QUrl &securityOrigin) const; +%End +%If (QtWebEngine_6_8_0 -) + QList<QWebEnginePermission> listPermissionsForPermissionType(QWebEnginePermission::PermissionType permissionType) const; +%End + +signals: +%If (QtWebEngine_6_8_0 -) + void persistentPermissionsPolicyChanged(); +%End }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineWidgets/qwebengineview.sip new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineWidgets/qwebengineview.sip --- old/PyQt6_WebEngine-6.7.0/sip/QtWebEngineWidgets/qwebengineview.sip 2024-04-20 18:04:26.385480000 +0200 +++ new/PyQt6_WebEngine-6.8.0/sip/QtWebEngineWidgets/qwebengineview.sip 2024-12-06 15:49:43.827459800 +0100 @@ -189,6 +189,9 @@ void pdfPrintingFinished(const QString &filePath, bool success); void printRequested(); void printFinished(bool success); +%If (QtWebEngine_6_8_0 -) + void printRequestedByFrame(QWebEngineFrame frame); +%End }; %ModuleHeaderCode