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:
Andrew McCreight 2018-02-01 11:23:55 -08:00
parent fe3d3e4f1e
commit 7073cf07e2
2 changed files with 1 additions and 16 deletions

View File

@ -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);

View File

@ -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);
}