mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 957229 - Don't show about:accounts with FxA disabled r=markh
This commit is contained in:
parent
1e0b46ad1b
commit
c20d5fafc3
@ -21,6 +21,16 @@ let wrapper = {
|
||||
iframe: null,
|
||||
|
||||
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");
|
||||
this.iframe = iframe;
|
||||
iframe.addEventListener("load", this);
|
||||
|
Loading…
Reference in New Issue
Block a user