170 self.printPageRequested.emit() |
174 self.printPageRequested.emit() |
171 return False |
175 return False |
172 |
176 |
173 # Safe Browsing |
177 # Safe Browsing |
174 self.__badSite = False |
178 self.__badSite = False |
175 from eric7.WebBrowser.SafeBrowsing.SafeBrowsingManager import ( |
|
176 SafeBrowsingManager, |
|
177 ) |
|
178 |
|
179 if ( |
179 if ( |
180 SafeBrowsingManager.isEnabled() |
180 SafeBrowsingManager.isEnabled() |
181 and url.scheme() not in SafeBrowsingManager.getIgnoreSchemes() |
181 and url.scheme() not in SafeBrowsingManager.getIgnoreSchemes() |
182 ): |
182 ): |
183 threatLists = WebBrowserWindow.safeBrowsingManager().lookupUrl(url)[0] |
183 threatLists = WebBrowserWindow.safeBrowsingManager().lookupUrl(url)[0] |
639 |
639 |
640 @param pos position to show the info at |
640 @param pos position to show the info at |
641 @type QPoint |
641 @type QPoint |
642 """ |
642 """ |
643 if SSL_AVAILABLE and self.__sslConfiguration is not None: |
643 if SSL_AVAILABLE and self.__sslConfiguration is not None: |
644 from eric7.EricNetwork.EricSslInfoWidget import EricSslInfoWidget |
644 from eric7.EricNetwork.EricSslInfoWidget import ( # __IGNORE_WARNING_I101__ |
|
645 EricSslInfoWidget, |
|
646 ) |
645 |
647 |
646 widget = EricSslInfoWidget(self.url(), self.__sslConfiguration, self.__view) |
648 widget = EricSslInfoWidget(self.url(), self.__sslConfiguration, self.__view) |
647 widget.showAt(pos) |
649 widget.showAt(pos) |
648 else: |
650 else: |
649 EricMessageBox.warning( |
651 EricMessageBox.warning( |