--- a/src/eric7/WebBrowser/JavaScript/PasswordManagerJsObject.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/WebBrowser/JavaScript/PasswordManagerJsObject.py Wed Jul 13 14:55:47 2022 +0200 @@ -14,22 +14,23 @@ """ Class implementing the Python side for calling the password manager. """ + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent object @type ExternalJsObject """ super().__init__(parent) - + self.__external = parent - + @pyqtSlot(str, str, str, QByteArray) def formSubmitted(self, urlStr, userName, password, data): """ Public slot passing form data to the password manager. - + @param urlStr form submission URL @type str @param userName name of the user @@ -40,5 +41,7 @@ @type QByteArray """ from WebBrowser.WebBrowserWindow import WebBrowserWindow + WebBrowserWindow.passwordManager().formSubmitted( - urlStr, userName, password, data, self.__external.page()) + urlStr, userName, password, data, self.__external.page() + )