mirror of https://github.com/gorhill/uBlock.git
this fixes #42
This commit is contained in:
parent
65f6b36131
commit
bc49c402df
|
@ -88,8 +88,8 @@ vAPI.tabs.registerListeners = function() {
|
||||||
var popupCandidates = Object.create(null);
|
var popupCandidates = Object.create(null);
|
||||||
|
|
||||||
var PopupCandidate = function(details) {
|
var PopupCandidate = function(details) {
|
||||||
this.targetTabId = details.tabId;
|
this.targetTabId = details.tabId.toString();
|
||||||
this.openerTabId = details.sourceTabId;
|
this.openerTabId = details.sourceTabId.toString();
|
||||||
this.targetURL = details.url;
|
this.targetURL = details.url;
|
||||||
this.selfDestructionTimer = null;
|
this.selfDestructionTimer = null;
|
||||||
};
|
};
|
||||||
|
|
|
@ -137,7 +137,7 @@ housekeep itself.
|
||||||
var gcPeriod = 10 * 60 * 1000;
|
var gcPeriod = 10 * 60 * 1000;
|
||||||
|
|
||||||
var TabContext = function(tabId) {
|
var TabContext = function(tabId) {
|
||||||
this.tabId = tabId;
|
this.tabId = tabId.toString();
|
||||||
this.stack = [];
|
this.stack = [];
|
||||||
this.rawURL =
|
this.rawURL =
|
||||||
this.normalURL =
|
this.normalURL =
|
||||||
|
@ -414,8 +414,8 @@ vAPI.tabs.onPopup = function(details) {
|
||||||
//console.debug('vAPI.tabs.onPopup: details = %o', details);
|
//console.debug('vAPI.tabs.onPopup: details = %o', details);
|
||||||
|
|
||||||
var tabContext = µb.tabContextManager.lookup(details.openerTabId);
|
var tabContext = µb.tabContextManager.lookup(details.openerTabId);
|
||||||
var openerURL = details.openerURL || '';
|
var openerURL = '';
|
||||||
if ( openerURL === '' && tabContext.tabId === details.openerTabId ) {
|
if ( tabContext.tabId === details.openerTabId ) {
|
||||||
openerURL = tabContext.normalURL;
|
openerURL = tabContext.normalURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue