mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
Firefox: fix tab closing issue (pop-up blocking)
This commit is contained in:
parent
ab556945f3
commit
859482fff2
1 changed files with 9 additions and 2 deletions
|
@ -980,10 +980,17 @@ var httpObserver = {
|
||||||
var tabURI = tab.linkedBrowser.currentURI;
|
var tabURI = tab.linkedBrowser.currentURI;
|
||||||
|
|
||||||
// Probably isn't the best method to identify the source tab
|
// Probably isn't the best method to identify the source tab
|
||||||
if ( tabURI.spec === this.lastRequest.openerURL ) {
|
if ( tabURI.spec !== lastRequest.openerURL ) {
|
||||||
sourceTabId = vAPI.tabs.getTabId(tab);
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceTabId = vAPI.tabs.getTabId(tab);
|
||||||
|
|
||||||
|
if ( sourceTabId !== lastRequest.tabId ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceTabId = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this.handlePopup(channel.URI, lastRequest.tabId, sourceTabId) ) {
|
if ( this.handlePopup(channel.URI, lastRequest.tabId, sourceTabId) ) {
|
||||||
|
|
Loading…
Reference in a new issue