do destruction process later than other addons
This commit is contained in:
parent
75dc1da17d
commit
650f2b4d93
@ -414,7 +414,15 @@ TreeStyleTabWindow.prototype = {
|
|||||||
// rap('window/init start');
|
// rap('window/init start');
|
||||||
var w = this.window;
|
var w = this.window;
|
||||||
w.removeEventListener('load', this, false);
|
w.removeEventListener('load', this, false);
|
||||||
w.addEventListener('unload', this, false);
|
|
||||||
|
/**
|
||||||
|
* We should register event handler with delay, to do destruction
|
||||||
|
* process later than other addons.
|
||||||
|
*/
|
||||||
|
var self = this;
|
||||||
|
this.Deferred.next(function() {
|
||||||
|
w.addEventListener('unload', self, false);
|
||||||
|
});
|
||||||
|
|
||||||
if (
|
if (
|
||||||
w.location.href.indexOf('chrome://browser/content/browser.xul') != 0 ||
|
w.location.href.indexOf('chrome://browser/content/browser.xul') != 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user