mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Bug 599632 - Remove duplicate initialization. r=mfinkle
This commit is contained in:
parent
10faddb3fc
commit
890ef679bc
@ -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),
|
||||
|
||||
|
@ -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[
|
||||
|
Loading…
Reference in New Issue
Block a user