--- a/eric6/WebBrowser/Network/NetworkManager.py Sat May 02 14:04:18 2020 +0200 +++ b/eric6/WebBrowser/Network/NetworkManager.py Sat May 02 19:10:08 2020 +0200 @@ -70,6 +70,8 @@ self.__permanentlyIgnoredSslErrors = {} # dictionaries of permanently and temporarily ignored SSL errors + self.__insecureHosts = set() + self.__loaded = False self.__saveTimer = AutoSaver(self, self.__save) @@ -179,6 +181,8 @@ host = error.url().host() + self.__insecureHosts.add(host) + if ( host in self.__temporarilyIgnoredSslErrors and error.error() in self.__temporarilyIgnoredSslErrors[host] @@ -222,6 +226,15 @@ else: return False + def isInsecureHost(self, host): + """ + Public method to check a host against the list of insecure hosts. + + @return flag indicating an insecure host + @rtype bool + """ + return host in self.__insecureHosts + def authentication(self, url, auth, page=None): """ Public slot to handle an authentication request.