/toolkit/mozapps/preferences/changemp.xul

http://github.com/zpao/v8monkey · Unknown · 101 lines · 91 code · 10 blank · 0 comment · 0 complexity · 724a666123a40b39400fee98baa2acaf MD5 · raw file

  1. <?xml version="1.0"?>
  2. # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  3. # ***** BEGIN LICENSE BLOCK *****
  4. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5. #
  6. # The contents of this file are subject to the Mozilla Public License Version
  7. # 1.1 (the "License"); you may not use this file except in compliance with
  8. # the License. You may obtain a copy of the License at
  9. # http://www.mozilla.org/MPL/
  10. #
  11. # Software distributed under the License is distributed on an "AS IS" basis,
  12. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13. # for the specific language governing rights and limitations under the
  14. # License.
  15. #
  16. # The Original Code is Mozilla.org Code.
  17. #
  18. # The Initial Developer of the Original Code is
  19. # Netscape Communications Corporation.
  20. # Portions created by the Initial Developer are Copyright (C) 2001
  21. # the Initial Developer. All Rights Reserved.
  22. #
  23. # Contributor(s):
  24. # Bob Lord <lord@netscape.com>
  25. # Terry Hayes <thayes@netscape.com>
  26. #
  27. # Alternatively, the contents of this file may be used under the terms of
  28. # either the GNU General Public License Version 2 or later (the "GPL"), or
  29. # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30. # in which case the provisions of the GPL or the LGPL are applicable instead
  31. # of those above. If you wish to allow use of your version of this file only
  32. # under the terms of either the GPL or the LGPL, and not to allow others to
  33. # use your version of this file under the terms of the MPL, indicate your
  34. # decision by deleting the provisions above and replace them with the notice
  35. # and other provisions required by the GPL or the LGPL. If you do not delete
  36. # the provisions above, a recipient may use your version of this file under
  37. # the terms of any one of the MPL, the GPL or the LGPL.
  38. #
  39. # ***** END LICENSE BLOCK *****
  40. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  41. <!DOCTYPE dialog [
  42. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  43. <!ENTITY % changempDTD SYSTEM "chrome://mozapps/locale/preferences/changemp.dtd" >
  44. %brandDTD;
  45. %changempDTD;
  46. ]>
  47. <dialog id="changemp" title="&setPassword.title;"
  48. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  49. style="width: 35em;"
  50. ondialogaccept="setPassword();"
  51. onload="init()">
  52. <script type="application/javascript" src="chrome://mozapps/content/preferences/changemp.js"/>
  53. <stringbundle id="bundlePreferences" src="chrome://mozapps/locale/preferences/preferences.properties"/>
  54. <description control="pw1">&masterPasswordDescription.label;</description>
  55. <groupbox>
  56. <grid>
  57. <columns>
  58. <column/>
  59. <column/>
  60. </columns>
  61. <rows>
  62. <row>
  63. <label control="oldpw" value="&setPassword.oldPassword.label;"/>
  64. <textbox id="oldpw" type="password"/>
  65. <!-- This textbox is inserted as a workaround to the fact that making the 'type'
  66. & 'disabled' property of the 'oldpw' textbox toggle between ['password' &
  67. 'false'] and ['text' & 'true'] - as would be necessary if the menu has more
  68. than one tokens, some initialized and some not - does not work properly. So,
  69. either the textbox 'oldpw' or the textbox 'message' would be displayed,
  70. depending on the state of the token selected
  71. -->
  72. <textbox id="message" disabled="true" />
  73. </row>
  74. <row>
  75. <label control="pw1" value="&setPassword.newPassword.label;"/>
  76. <textbox id="pw1" type="password"
  77. oninput="setPasswordStrength(); checkPasswords();"/>
  78. </row>
  79. <row>
  80. <label control="pw2" value="&setPassword.reenterPassword.label;"/>
  81. <textbox id="pw2" type="password" oninput="checkPasswords();"/>
  82. </row>
  83. </rows>
  84. </grid>
  85. </groupbox>
  86. <groupbox>
  87. <caption label="&setPassword.meter.label;"/>
  88. <progressmeter id="pwmeter" mode="determined" value="0"/>
  89. </groupbox>
  90. <description control="pw2" class="header">&masterPasswordWarning.label;</description>
  91. </dialog>