fix #2030: brain fart bug

This commit is contained in:
gorhill 2016-09-26 00:07:29 -04:00
parent 0c4137937d
commit 56176c8eb7
3 changed files with 2 additions and 14 deletions

View file

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "uBlock Origin", "name": "uBlock Origin",
"version": "1.9.11.100", "version": "1.9.11.101",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",

View file

@ -422,10 +422,6 @@ var contentObserver = {
sandbox.removeMessageListener = sandbox.removeMessageListener =
sandbox.sendAsyncMessage = function(){}; sandbox.sendAsyncMessage = function(){};
sandbox.vAPI = {}; sandbox.vAPI = {};
if ( messager && messager.ublock0LocationChangeListener ) {
messager.ublock0LocationChangeListener.stop();
delete messager.ublock0LocationChangeListener;
}
messager = null; messager = null;
}; };
} }
@ -596,7 +592,6 @@ var LocationChangeListener = function(docShell, webProgress) {
return; return;
} }
this.messageManager = mm; this.messageManager = mm;
this.webProgress = webProgress;
webProgress.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_LOCATION); webProgress.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_LOCATION);
}; };
@ -617,13 +612,6 @@ LocationChangeListener.prototype.onLocationChange = function(webProgress, reques
}); });
}; };
LocationChangeListener.prototype.stop = function() {
if ( this.webProgress ) {
this.webProgress.removeProgressListener(this);
}
this.messageManager = this.webProgress = null;
};
/******************************************************************************/ /******************************************************************************/
contentObserver.register(); contentObserver.register();

View file

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "uBlock Origin", "name": "uBlock Origin",
"version": "1.9.11.100", "version": "1.9.11.101",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",