Bug 1288557 - Part 1: Replace custom exceptions dialog with usage of permissions

This commit is contained in:
janekptacijarabaci 2018-04-26 22:45:38 +02:00 committed by Roy Tam
commit 997e7cf404
3 changed files with 20 additions and 6 deletions

View file

@ -131,9 +131,21 @@ var gSecurityPane = {
*/
showPasswordExceptions: function ()
{
let bundlePrefs = document.getElementById("bundlePreferences");
let params = {
blockVisible: true,
sessionVisible: false,
allowVisible: false,
hideStatusColumn: true,
prefilledHost: "",
permissionType: "login-saving",
windowTitle: bundlePrefs.getString("savedLoginsExceptions_title"),
introText: bundlePrefs.getString("savedLoginsExceptions_desc")
};
document.documentElement.openWindow("Toolkit:PasswordManagerExceptions",
"chrome://passwordmgr/content/passwordManagerExceptions.xul",
"", null);
"chrome://browser/content/preferences/permissions.xul",
null, params);
},
/**