revert and rewrite "Remove e10s info from about:support (f7f7224de)" to not relying on string bundle (i.e. becoming non-translable) in order to compatible to official language packs

This commit is contained in:
Roy Tam 2019-07-11 22:32:57 +08:00
commit 7da25d73be
4 changed files with 54 additions and 0 deletions

View file

@ -220,6 +220,18 @@ var dataProviders = {
}
}
data.remoteAutoStart = Services.appinfo.browserTabsRemoteAutostart;
try {
let e10sStatus = Cc["@mozilla.org/supports-PRUint64;1"]
.createInstance(Ci.nsISupportsPRUint64);
let appinfo = Services.appinfo.QueryInterface(Ci.nsIObserver);
appinfo.observe(e10sStatus, "getE10SBlocked", "");
data.autoStartStatus = e10sStatus.data;
} catch (e) {
data.autoStartStatus = -1;
}
done(data);
},

View file

@ -126,6 +126,13 @@ const SNAPSHOT_SCHEMA = {
supportURL: {
type: "string",
},
remoteAutoStart: {
type: "boolean",
required: true,
},
autoStartStatus: {
type: "number",
},
numTotalWindows: {
type: "number",
},