Bug 599632 - Remove duplicate initialization. r=mfinkle

This commit is contained in:
Honza Bambas 2010-10-11 11:09:00 -04:00
parent 10faddb3fc
commit 890ef679bc
2 changed files with 0 additions and 20 deletions

View File

@ -164,22 +164,9 @@ let SecurityUI = {
}
return result;
},
init: function() {
addMessageListener("SecurityUI:Init", this);
},
receiveMessage: function(aMessage) {
const SECUREBROWSERUI_CONTRACTID = "@mozilla.org/secure_browser_ui;1";
let securityUI = Cc[SECUREBROWSERUI_CONTRACTID].createInstance(Ci.nsISecureBrowserUI);
securityUI.init(content);
}
};
SecurityUI.init();
let WebNavigation = {
_webNavigation: docShell.QueryInterface(Ci.nsIWebNavigation),

View File

@ -55,13 +55,6 @@
<field name="_securityUI">null</field>
<property name="securityUI">
<getter><![CDATA[
if (!this._securityUI) {
const SECUREBROWSERUI_CONTRACTID = "@mozilla.org/secure_browser_ui;1";
if (!this.hasAttribute("disablesecurity") && SECUREBROWSERUI_CONTRACTID in Components.classes) {
this.messageManager.sendAsyncMessage('SecurityUI:Init', { });
}
}
return this._securityUI || {};
]]></getter>
<setter><![CDATA[