Clear open target in acceptNavigationRequest.
This is a regression introduced in a76868c0f4
.
Fixes #530.
This commit is contained in:
parent
801f6b2667
commit
40af99bacc
@ -535,6 +535,7 @@ class BrowserPage(QWebPage):
|
|||||||
message.error(self._win_id, "Invalid link {} clicked!".format(
|
message.error(self._win_id, "Invalid link {} clicked!".format(
|
||||||
urlstr))
|
urlstr))
|
||||||
log.webview.debug(url.errorString())
|
log.webview.debug(url.errorString())
|
||||||
|
self.open_target = usertypes.ClickTarget.normal
|
||||||
return False
|
return False
|
||||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||||
window=self._win_id)
|
window=self._win_id)
|
||||||
@ -546,6 +547,7 @@ class BrowserPage(QWebPage):
|
|||||||
target = self._hint_target
|
target = self._hint_target
|
||||||
else:
|
else:
|
||||||
target = self.open_target
|
target = self.open_target
|
||||||
|
self.open_target = usertypes.ClickTarget.normal
|
||||||
if target == usertypes.ClickTarget.tab:
|
if target == usertypes.ClickTarget.tab:
|
||||||
tabbed_browser.tabopen(url, False)
|
tabbed_browser.tabopen(url, False)
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user