Bug 761837 - inner-window-destroyed observer gets added twice for webapps. r=fabrice

This commit is contained in:
Gregor Wagner 2012-06-07 09:55:55 -07:00
parent 00e61410f2
commit cee63dac07

View File

@ -163,7 +163,6 @@ WebappsRegistry.prototype = {
"Webapps:GetInstalled:Return:OK", "Webapps:GetInstalled:Return:KO",
"Webapps:GetSelf:Return:OK", "Webapps:GetSelf:Return:KO"]);
Services.obs.addObserver(this, "inner-window-destroyed", false);
let util = this._window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
this._id = util.outerWindowID;
},