diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 22:45:38 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 22:45:38 +0200 |
commit | fc60f65ed16aa02e21387639973d88f717ca98bb (patch) | |
tree | 0642c4fb38b954a3419a85ed9f2eb00d70394d3e /application/palemoon/components | |
parent | e19475faacf9cca2feb0d1abba3882939d4a2021 (diff) | |
download | UXP-fc60f65ed16aa02e21387639973d88f717ca98bb.tar UXP-fc60f65ed16aa02e21387639973d88f717ca98bb.tar.gz UXP-fc60f65ed16aa02e21387639973d88f717ca98bb.tar.lz UXP-fc60f65ed16aa02e21387639973d88f717ca98bb.tar.xz UXP-fc60f65ed16aa02e21387639973d88f717ca98bb.zip |
Bug 1288557 - Part 1: Replace custom exceptions dialog with usage of permissions
Diffstat (limited to 'application/palemoon/components')
-rw-r--r-- | application/palemoon/components/preferences/permissions.xul | 8 | ||||
-rw-r--r-- | application/palemoon/components/preferences/security.js | 16 |
2 files changed, 18 insertions, 6 deletions
diff --git a/application/palemoon/components/preferences/permissions.xul b/application/palemoon/components/preferences/permissions.xul index 9d0e0c43a..33806cc27 100644 --- a/application/palemoon/components/preferences/permissions.xul +++ b/application/palemoon/components/preferences/permissions.xul @@ -5,8 +5,8 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> -<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> -<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?> +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> +<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?> <!DOCTYPE dialog SYSTEM "chrome://browser/locale/preferences/permissions.dtd" > @@ -35,7 +35,7 @@ <separator class="thin"/> <label id="urlLabel" control="url" value="&address.label;" accesskey="&address.accesskey;"/> <hbox align="start"> - <textbox id="url" flex="1" + <textbox id="url" flex="1" oninput="gPermissionManager.onHostInput(event.target);" onkeypress="gPermissionManager.onHostKeyPress(event);"/> </hbox> @@ -70,7 +70,7 @@ oncommand="gPermissionManager.onPermissionDeleted();"/> <button id="removeAllPermissions" icon="clear" label="&removeallpermissions.label;" - accesskey="&removeallpermissions.accesskey;" + accesskey="&removeallpermissions.accesskey;" oncommand="gPermissionManager.onAllPermissionsDeleted();"/> </hbox> <spacer flex="1"/> diff --git a/application/palemoon/components/preferences/security.js b/application/palemoon/components/preferences/security.js index 56664bf66..9d5f302a2 100644 --- a/application/palemoon/components/preferences/security.js +++ b/application/palemoon/components/preferences/security.js @@ -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); }, /** |