1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

Firefox: fix tab closing issue (pop-up blocking)

This commit is contained in:
Deathamns 2015-01-15 15:58:14 +01:00 committed by gorhill
parent ab556945f3
commit 859482fff2

View file

@ -980,10 +980,17 @@ var httpObserver = {
var tabURI = tab.linkedBrowser.currentURI;
// Probably isn't the best method to identify the source tab
if ( tabURI.spec === this.lastRequest.openerURL ) {
sourceTabId = vAPI.tabs.getTabId(tab);
if ( tabURI.spec !== lastRequest.openerURL ) {
continue
}
sourceTabId = vAPI.tabs.getTabId(tab);
if ( sourceTabId !== lastRequest.tabId ) {
break;
}
sourceTabId = null;
}
if ( this.handlePopup(channel.URI, lastRequest.tabId, sourceTabId) ) {