browser/components/preferences/in-content/security.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     2    - License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3    - You can obtain one at http://mozilla.org/MPL/2.0/.  -->
     5 <script type="application/javascript" 
     6         src="chrome://browser/content/preferences/in-content/security.js"/>  
     8 <preferences id="securityPreferences">
     9   <!-- XXX buttons -->
    10   <preference id="pref.privacy.disable_button.view_passwords"
    11               name="pref.privacy.disable_button.view_passwords"
    12               type="bool"/>
    13   <preference id="pref.privacy.disable_button.view_passwords_exceptions"
    14               name="pref.privacy.disable_button.view_passwords_exceptions"
    15               type="bool"/>
    17   <!-- Add-ons, malware, phishing -->
    18   <preference id="xpinstall.whitelist.required"
    19               name="xpinstall.whitelist.required"
    20               type="bool"/>
    21   <preference id="browser.safebrowsing.malware.enabled"
    22               name="browser.safebrowsing.malware.enabled"
    23               type="bool"/>
    24   <preference id="browser.safebrowsing.enabled"
    25               name="browser.safebrowsing.enabled"
    26               type="bool"/>
    28   <!-- Passwords -->
    29   <preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/>
    31 </preferences>
    33 <hbox id="header-security"
    34       class="header"
    35       hidden="true"
    36       data-category="paneSecurity">
    37   <image class="header-icon"/>
    38   <label class="header-name"
    39          value="&paneSecurity.title;"/>
    40 </hbox>
    42 <!-- addons, forgery (phishing) UI -->
    43 <groupbox id="addonsPhishingGroup" data-category="paneSecurity" hidden="true">
    44   <caption label="&general.label;"/>
    46   <hbox id="addonInstallBox">
    47     <checkbox id="warnAddonInstall" flex="1"
    48               label="&warnAddonInstall.label;"
    49               accesskey="&warnAddonInstall.accesskey;"
    50               preference="xpinstall.whitelist.required"
    51               onsyncfrompreference="return gSecurityPane.readWarnAddonInstall();"/>
    52     <button id="addonExceptions"
    53             label="&addonExceptions.label;"
    54             accesskey="&addonExceptions.accesskey;"
    55             oncommand="gSecurityPane.showAddonExceptions();"/>
    56   </hbox>
    58   <separator class="thin"/>
    59   <checkbox id="blockAttackSites"
    60             label="&blockAttackSites.label;"
    61             accesskey="&blockAttackSites.accesskey;"
    62             preference="browser.safebrowsing.malware.enabled" />
    63   <checkbox id="blockWebForgeries"
    64             label="&blockWebForgeries.label;"
    65             accesskey="&blockWebForgeries.accesskey;"
    66             preference="browser.safebrowsing.enabled" />
    67 </groupbox>
    69 <!-- Passwords -->
    70 <groupbox id="passwordsGroup" orient="vertical" data-category="paneSecurity" hidden="true">
    71   <caption label="&passwords.label;"/>
    73   <hbox id="savePasswordsBox">
    74     <checkbox id="savePasswords" flex="1"
    75               label="&rememberPasswords.label;" accesskey="&rememberPasswords.accesskey;"
    76               preference="signon.rememberSignons"
    77               onsyncfrompreference="return gSecurityPane.readSavePasswords();"/>
    78     <button id="passwordExceptions"
    79             label="&passwordExceptions.label;"
    80             accesskey="&passwordExceptions.accesskey;"
    81             oncommand="gSecurityPane.showPasswordExceptions();"
    82             preference="pref.privacy.disable_button.view_passwords_exceptions"/>
    83   </hbox>
    84   <hbox id="masterPasswordBox">
    85     <checkbox id="useMasterPassword" flex="1"
    86               oncommand="gSecurityPane.updateMasterPasswordButton();"
    87               label="&useMasterPassword.label;"
    88               accesskey="&useMasterPassword.accesskey;"/>
    89     <button id="changeMasterPassword"
    90             label="&changeMasterPassword.label;"
    91             accesskey="&changeMasterPassword.accesskey;"
    92             oncommand="gSecurityPane.changeMasterPassword();"/>
    93   </hbox>
    95   <hbox id="showPasswordsBox">
    96     <spacer flex="1"/>
    97     <button id="showPasswords"
    98             label="&savedPasswords.label;" accesskey="&savedPasswords.accesskey;"
    99             oncommand="gSecurityPane.showPasswords();"
   100             preference="pref.privacy.disable_button.view_passwords"/>
   101   </hbox>
   102 </groupbox>

mercurial