src/eric7/WebBrowser/WebBrowserPage.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9488
44d723e53988
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
136 the main frame 136 the main frame
137 @type bool 137 @type bool
138 @return flag indicating acceptance 138 @return flag indicating acceptance
139 @rtype bool 139 @rtype bool
140 """ 140 """
141 from eric7.WebBrowser.SafeBrowsing.SafeBrowsingManager import (
142 SafeBrowsingManager,
143 )
144
141 scheme = url.scheme() 145 scheme = url.scheme()
142 if scheme == "mailto": 146 if scheme == "mailto":
143 QDesktopServices.openUrl(url) 147 QDesktopServices.openUrl(url)
144 return False 148 return False
145 149
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(

eric ide

mercurial