mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1434977 - Remove old UniversalXPConnect related stuff from Talos. r=jmaher
MozReview-Commit-ID: GHCPPMsf6N9 --HG-- extra : rebase_source : 1c9481491836b1b2d131455d5bc75aed0d111843
This commit is contained in:
parent
fe3d3e4f1e
commit
7073cf07e2
@ -1,12 +0,0 @@
|
||||
// This file is needed to work around a Firefox bug where capability.principal
|
||||
// prefs in user.js don't get recognized until the second browser launch
|
||||
// which is too late for our purposes of using quit.js. Loading the principals
|
||||
// from prefs.js avoids this issue.
|
||||
/* globals user_pref */
|
||||
user_pref("capability.principal.codebase.p0.granted", "UniversalPreferencesWrite UniversalXPConnect UniversalPreferencesRead");
|
||||
user_pref("capability.principal.codebase.p0.id", "file://");
|
||||
user_pref("capability.principal.codebase.p0.subjectName", "");
|
||||
user_pref("capability.principal.codebase.p1.granted", "UniversalPreferencesWrite UniversalXPConnect UniversalPreferencesRead");
|
||||
user_pref("capability.principal.codebase.p1.id", "http://localhost");
|
||||
user_pref("capability.principal.codebase.p1.subjectName", "");
|
||||
user_pref("signed.applets.codebase_principal_support", true);
|
@ -63,12 +63,9 @@ function canQuitApplication() {
|
||||
}
|
||||
|
||||
function goQuitApplication(waitForSafeBrowsing) {
|
||||
const privs = "UniversalPreferencesRead UniversalPreferencesWrite " +
|
||||
"UniversalXPConnect";
|
||||
|
||||
/* eslint-disable mozilla/use-chromeutils-import */
|
||||
try {
|
||||
netscape.security.PrivilegeManager.enablePrivilege(privs);
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
} catch (ex) {
|
||||
throw ("goQuitApplication: privilege failure " + ex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user