--- a/eric7/WebBrowser/WebBrowserView.py Sun Aug 29 17:48:26 2021 +0200 +++ b/eric7/WebBrowser/WebBrowserView.py Sun Aug 29 17:48:44 2021 +0200 @@ -20,7 +20,7 @@ QDesktopServices, QClipboard, QIcon, QContextMenuEvent, QPixmap, QCursor ) from PyQt6.QtWidgets import QStyle, QMenu, QApplication, QDialog -from PyQt6.QtWebEngineCore import QWebEnginePage, QWebEngineDownloadItem +from PyQt6.QtWebEngineCore import QWebEnginePage, QWebEngineDownloadRequest from PyQt6.QtWebEngineWidgets import QWebEngineView from EricWidgets import EricMessageBox, EricFileDialog @@ -143,7 +143,7 @@ """ Private method to create a new page object. """ - self.__page = WebBrowserPage(self) + self.__page = WebBrowserPage(self, self) self.setPage(self.__page) self.__page.safeBrowsingAbort.connect(self.safeBrowsingAbort) @@ -1916,7 +1916,7 @@ @return tuple containing the file name to save to and the save page format - @rtype tuple of (str, QWebEngineDownloadItem.SavePageFormat) + @rtype tuple of (str, QWebEngineDownloadRequest.SavePageFormat) """ documentLocation = QStandardPaths.writableLocation( QStandardPaths.StandardLocation.DocumentsLocation) @@ -1944,7 +1944,7 @@ defaultFileName += ".mhtml" fileName = "" - saveFormat = QWebEngineDownloadItem.SavePageFormat.MimeHtmlSaveFormat + saveFormat = QWebEngineDownloadRequest.SavePageFormat.MimeHtmlSaveFormat fileName, selectedFilter = EricFileDialog.getSaveFileNameAndFilter( None, @@ -1956,15 +1956,15 @@ index = filterList.index(selectedFilter) if index == 0: saveFormat = ( - QWebEngineDownloadItem.SavePageFormat.MimeHtmlSaveFormat + QWebEngineDownloadRequest.SavePageFormat.MimeHtmlSaveFormat ) elif index == 1: saveFormat = ( - QWebEngineDownloadItem.SavePageFormat.SingleHtmlSaveFormat + QWebEngineDownloadRequest.SavePageFormat.SingleHtmlSaveFormat ) else: saveFormat = ( - QWebEngineDownloadItem.SavePageFormat + QWebEngineDownloadRequest.SavePageFormat .CompleteHtmlSaveFormat )