mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
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 PopupCandidate = function(details) {
|
||||
this.targetTabId = details.tabId;
|
||||
this.openerTabId = details.sourceTabId;
|
||||
this.targetTabId = details.tabId.toString();
|
||||
this.openerTabId = details.sourceTabId.toString();
|
||||
this.targetURL = details.url;
|
||||
this.selfDestructionTimer = null;
|
||||
};
|
||||
|
@ -137,7 +137,7 @@ housekeep itself.
|
||||
var gcPeriod = 10 * 60 * 1000;
|
||||
|
||||
var TabContext = function(tabId) {
|
||||
this.tabId = tabId;
|
||||
this.tabId = tabId.toString();
|
||||
this.stack = [];
|
||||
this.rawURL =
|
||||
this.normalURL =
|
||||
@ -414,8 +414,8 @@ vAPI.tabs.onPopup = function(details) {
|
||||
//console.debug('vAPI.tabs.onPopup: details = %o', details);
|
||||
|
||||
var tabContext = µb.tabContextManager.lookup(details.openerTabId);
|
||||
var openerURL = details.openerURL || '';
|
||||
if ( openerURL === '' && tabContext.tabId === details.openerTabId ) {
|
||||
var openerURL = '';
|
||||
if ( tabContext.tabId === details.openerTabId ) {
|
||||
openerURL = tabContext.normalURL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user