mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
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:
parent
b415378cc3
commit
7da25d73be
4 changed files with 54 additions and 0 deletions
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -126,6 +126,13 @@ const SNAPSHOT_SCHEMA = {
|
|||
supportURL: {
|
||||
type: "string",
|
||||
},
|
||||
remoteAutoStart: {
|
||||
type: "boolean",
|
||||
required: true,
|
||||
},
|
||||
autoStartStatus: {
|
||||
type: "number",
|
||||
},
|
||||
numTotalWindows: {
|
||||
type: "number",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue