~vono22/cookiekeeper/1.9.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<!--
   - CookieKeeper - a Mozilla add-on
   - (c) 2013-2016 Yvon TANGUY
   -
   - ==================================================================
   - This Source Code Form is subject to the terms of the Mozilla Public
   - 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/.
   - ==================================================================
   - Cookies Editor.
 -->

<?xml-stylesheet href="chrome://global/skin/"                              type="text/css"?>
<?xml-stylesheet href="chrome://cookiekeeper_os/skin/ck.editor.cookie.css" type="text/css"?>

<!DOCTYPE dialog [
  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  <!ENTITY % cookieKeeperDTD SYSTEM "chrome://cookiekeeper/locale/ck.editor.dtd" >
  %brandDTD;
  %cookieKeeperDTD;
]>

<window id="cookieKeeperEditorCookie"
        windowtype="CookieKeeper:CookieEditor"
        class="windowDialog" title="&window.cookieeditor.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="gCookieEditor.init();"
        onunload="gCookieEditor.uninit();"
        sizemode="normal"
        toggletoolbar="true"
        persist="screenX screenY width height"
        onkeypress="gCookieEditor.onWindowKeyPress(event);">

  <stringbundle id="bundleCookieKeeper" src="chrome://cookiekeeper/locale/cookiekeeper.properties" />
  <script type="application/x-javascript">
    Components.utils.import("resource://gre/modules/Services.jsm");
  </script>
  <script src="chrome://cookiekeeper/content/common.js"           type="application/x-javascript" />
  <script src="chrome://cookiekeeper/content/ck.editor.cookie.js" type="application/x-javascript" />

  <vbox flex="1" class="contentPane">

    <separator class="thin" />
    <hbox id="cookieEditBox">
      <grid flex="1" id="cookieEditGrid">
        <columns>
          <column/>
          <column flex="1" />
        </columns>
        <rows>
           <row align="center">
            <hbox pack="end"><label id="isDomain" control="host" value="&props.domain.label;"/></hbox>
            <textbox id="tbHost" newlines="strip" accessibleType="101B" aria-label="&props.domain.label;" />
          </row>
          <row align="center">
            <hbox pack="end"><label id="nameLabel" control="name" value="&props.name.label;"/></hbox>
            <textbox id="tbName" newlines="strip" accessibleType="101B" aria-label="&props.name.label;" />
          </row>
          <row align="center">
            <hbox pack="end"><label id="pathLabel" control="path" value="&props.path.label;"/></hbox>
            <textbox id="tbPath" newlines="strip" accessibleType="101B" aria-label="&props.path.label;" />
          </row>
          <row align="center">
            <hbox pack="end"><label id="valueLabel" control="value" value="&props.value.label;"/></hbox>
            <textbox id="tbValue" newlines="strip" accessibleType="101B" aria-label="&props.value.label;" />
          </row>
         <row align="center">
            <hbox pack="end"><label id="isSecureLabel" control="isSecure" value="&props.secure.label;" /></hbox>
            <radiogroup id="radioGroupSecure" style="display: inline-block;" accessibleType="1016" >
              <radio id="radioSecureNo"  label="&radio.secure_no.label;"  value="date"    accessibleType="1015" />
              <radio id="radioSecureYes" label="&radio.secure_yes.label;" value="session" accessibleType="1015" />
            </radiogroup>
          </row>
          <row align="center">
            <hbox pack="end"><label id="isHttpOnly" control="isHttpOnly" value="&props.httponly.label;" tooltiptext="&props.httponly.tooltip;" /></hbox>
            <checkbox id="cbHttpOnly" accessibleType="1003" aria-label="&props.httponly.label;" />
          </row>
          <row align="center">
              <hbox pack="end"><label id="expiresLabel" control="expires" value="&props.expires.label;" /></hbox>
              <vbox id="expireBox">
                <hbox>
                  <radiogroup id="radioGroupExpire" style="display: inline-block;" accessibleType="1016" >
                    <radio id="radioExpireDate" label="&radio.expire.date;" value="date" accessibleType="1015"
                           oncommand="gCookieEditor.onRadioExpire('date');" />
                    <radio id="radioExpireSession" label="&radio.expire.session;" value="session" accessibleType="1015"
                           oncommand="gCookieEditor.onRadioExpire('session');" />
                  </radiogroup>
                  <spacer flex="1"/>
                </hbox>
                <hbox>
                  <datepicker id="dpExpires" type="popup" aria-label="&dpExpires.arialabel;" />
                  <timepicker id="tpExpires" increment="10" hideseconds="false" aria-label="&tpExpires.arialabel;" />
                </hbox>
              </vbox>
          </row>
        </rows>
      </grid>
    </hbox>

    <spacer flex="1"/>
    <hbox>
      <button id="buttonSaveCookie" accessibleType="1002"
              oncommand="gCookieEditor.onSave();" icon="save"
              label="&button.save.label;" accesskey="&button.save.accesskey;" />
      <spacer flex="1" />
      <button id="buttonClose" accessibleType="1002"
              oncommand="close();" icon="close"
              label="&button.close.label;" accesskey="&button.close.accesskey;" />

    </hbox>
  </vbox>
</window>