WebBrowser/WebBrowserView.py

branch
maintenance
changeset 6487
d3ca83d691e7
parent 6455
22a6fc33ab6d
parent 6466
dac80ad0de75
child 6602
331ac8f99cf8
equal deleted inserted replaced
6456:a930352300c9 6487:d3ca83d691e7
2256 quotaRequest.reject() 2256 quotaRequest.reject()
2257 2257
2258 @pyqtSlot("QWebEngineRegisterProtocolHandlerRequest") 2258 @pyqtSlot("QWebEngineRegisterProtocolHandlerRequest")
2259 def __registerProtocolHandlerRequested(self, request): 2259 def __registerProtocolHandlerRequested(self, request):
2260 """ 2260 """
2261 Private slot to handle requests for registration of a protocol handler. 2261 Private slot to handle requests for registration of a protocol
2262 handler.
2262 2263
2263 @param request reference to the protocol handler request object 2264 @param request reference to the protocol handler request object
2264 @type QWebEngineRegisterProtocolHandlerRequest 2265 @type QWebEngineRegisterProtocolHandlerRequest
2265 """ 2266 """
2266 acceptRequest = Preferences.getWebBrowser( 2267 acceptRequest = Preferences.getWebBrowser(
2275 else: 2276 else:
2276 # ask user 2277 # ask user
2277 ok = E5MessageBox.yesNo( 2278 ok = E5MessageBox.yesNo(
2278 self, 2279 self,
2279 self.tr("Protocol Handler Request"), 2280 self.tr("Protocol Handler Request"),
2280 self.tr("""<p> Allow the website at <b>{0}</b> to open all""" 2281 self.tr("""<p> Allow the website at <b>{0}</b> to open"""
2281 """ <b>{1}</b> links?</p>""") 2282 """ all <b>{1}</b> links?</p>""")
2282 .format(request.origin().host(), request.scheme()) 2283 .format(request.origin().host(), request.scheme())
2283 ) 2284 )
2284 2285
2285 if ok: 2286 if ok:
2286 request.accept() 2287 request.accept()

eric ide

mercurial