toolkit/mozapps/preferences/changemp.xul

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <?xml version="1.0"?>
     3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     4    - License, v. 2.0. If a copy of the MPL was not distributed with this
     5    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     9 <!DOCTYPE dialog [
    10 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
    11 <!ENTITY % changempDTD SYSTEM "chrome://mozapps/locale/preferences/changemp.dtd" >
    12 %brandDTD;
    13 %changempDTD;
    14 ]>
    16 <dialog id="changemp" title="&setPassword.title;"
    17         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
    18         style="width: 35em;" 
    19         ondialogaccept="setPassword();" 
    20         onload="init()">
    22   <script type="application/javascript" src="chrome://mozapps/content/preferences/changemp.js"/>
    24   <stringbundle id="bundlePreferences" src="chrome://mozapps/locale/preferences/preferences.properties"/>
    26   <description control="pw1">&masterPasswordDescription.label;</description>
    28   <groupbox>
    29     <grid>
    30       <columns>
    31         <column/>
    32         <column/> 
    33       </columns>
    34       <rows>
    35         <row>
    36           <label control="oldpw" value="&setPassword.oldPassword.label;"/> 
    37           <textbox id="oldpw" type="password"/>
    38           <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
    39                 & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
    40                 'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
    41                 than one tokens, some initialized and some not - does not work properly. So, 
    42                 either the textbox 'oldpw' or the textbox 'message' would be displayed, 
    43                 depending on the state of the token selected 
    44           -->
    45           <textbox id="message" disabled="true" />
    46         </row>
    47         <row>
    48           <label control="pw1" value="&setPassword.newPassword.label;"/> 
    49           <textbox id="pw1" type="password" 
    50                    oninput="setPasswordStrength(); checkPasswords();"/> 
    51         </row>
    52         <row>
    53           <label control="pw2" value="&setPassword.reenterPassword.label;"/> 
    54           <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
    55         </row>
    56       </rows>
    57     </grid>
    58   </groupbox>
    60   <groupbox>
    61     <caption label="&setPassword.meter.label;"/>
    62     <progressmeter id="pwmeter" mode="determined" value="0"/>
    63   </groupbox>
    65   <description control="pw2" class="header">&masterPasswordWarning.label;</description>
    67 </dialog>

mercurial