Bug 957229 - Don't show about:accounts with FxA disabled r=markh

This commit is contained in:
Tim Taubert 2014-01-27 15:17:29 -08:00
parent 1e0b46ad1b
commit c20d5fafc3

View File

@ -21,6 +21,16 @@ let wrapper = {
iframe: null, iframe: null,
init: function () { init: function () {
let weave = Cc["@mozilla.org/weave/service;1"]
.getService(Ci.nsISupports)
.wrappedJSObject;
// Don't show about:accounts with FxA disabled.
if (!weave.fxAccountsEnabled) {
document.body.remove();
return;
}
let iframe = document.getElementById("remote"); let iframe = document.getElementById("remote");
this.iframe = iframe; this.iframe = iframe;
iframe.addEventListener("load", this); iframe.addEventListener("load", this);