mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-29 14:17:11 +02:00
Fix for #1176
This commit is contained in:
parent
0083784289
commit
a694d1ed60
@ -1326,7 +1326,9 @@ vAPI.net.registerListeners = function() {
|
|||||||
var details = e.data;
|
var details = e.data;
|
||||||
var browser = e.target;
|
var browser = e.target;
|
||||||
var tabId = vAPI.tabs.getTabId(browser);
|
var tabId = vAPI.tabs.getTabId(browser);
|
||||||
|
if (tabId === vAPI.noTabId) {
|
||||||
|
return; // Do not navigate for behind the scenes
|
||||||
|
}
|
||||||
//console.debug("nsIWebProgressListener: onLocationChange: " + details.url + " (" + details.flags + ")");
|
//console.debug("nsIWebProgressListener: onLocationChange: " + details.url + " (" + details.flags + ")");
|
||||||
|
|
||||||
// LOCATION_CHANGE_SAME_DOCUMENT = "did not load a new document"
|
// LOCATION_CHANGE_SAME_DOCUMENT = "did not load a new document"
|
||||||
|
@ -743,7 +743,7 @@ uDom.onLoad(function () {
|
|||||||
var tabId = null; //If there's no tab ID specified in the query string, it will default to current tab.
|
var tabId = null; //If there's no tab ID specified in the query string, it will default to current tab.
|
||||||
|
|
||||||
// Extract the tab id of the page this popup is for
|
// Extract the tab id of the page this popup is for
|
||||||
var matches = window.location.search.match(/[\?&]tabId=([^&]+)/);
|
var matches = window.location && window.location.search.match(/[\?&]tabId=([^&]+)/);
|
||||||
if (matches && matches.length === 2) {
|
if (matches && matches.length === 2) {
|
||||||
tabId = matches[1];
|
tabId = matches[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user