DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (0ddcbf234291)

VCS Links

Line Code
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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
 Version: MPL 1.1/GPL 2.0/LGPL 2.1

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at
 http://www.mozilla.org/MPL/

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the
 License.

 The Original Code is Mozilla Communicator client code, released
 March 31, 1998.

 The Initial Developer of the Original Code is
 Netscape Communications Corporation.
 Portions created by the Initial Developer are Copyright (C) 1998-1999
 the Initial Developer. All Rights Reserved.

 Contributor(s):
   Ben Goodger

 Alternatively, the contents of this file may be used under the terms of
 either the GNU General Public License Version 2 or later (the "GPL"), or
 the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 in which case the provisions of the GPL or the LGPL are applicable instead
 of those above. If you wish to allow use of your version of this file only
 under the terms of either the GPL or the LGPL, and not to allow others to
 use your version of this file under the terms of the MPL, indicate your
 decision by deleting the provisions above and replace them with the notice
 and other provisions required by the GPL or the LGPL. If you do not delete
 the provisions above, a recipient may use your version of this file under
 the terms of any one of the MPL, the GPL or the LGPL.

 ***** END LICENSE BLOCK ***** -->

<!-- CHANGE THIS WHEN MOVING FILES -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 

<!-- CHANGE THIS WHEN MOVING FILES -->
<!DOCTYPE dialog SYSTEM "chrome://communicator/locale/permissions/cookieViewer.dtd" >

<dialog id="cookieviewer"
        buttons="accept,help"
        title="&windowtitle.label;"
        buttonlabelaccept="&buttonaccept.label;"
        buttonaccesskeyaccept="&buttonaccept.accesskey;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        windowtype="mozilla:cookieviewer"
        style="width: 30em; height: 42em;"
        onload="Startup()"
        onunload="Shutdown()"
        ondialoghelp="doHelpButton();"
        persist="screenX screenY width height">

  <script type="application/javascript"
          src="chrome://communicator/content/permissions/cookieViewer.js"/>
  <script type="application/javascript"
          src="chrome://communicator/content/permissions/treeUtils.js"/>
  <script type="application/javascript"
          src="chrome://help/content/contextHelp.js" />

  <keyset id="dialogKeys">
    <key key="&windowClose.key;" modifiers="accel" oncommand="window.close();"/>
    <key key="&focusSearch.key;" modifiers="accel" oncommand="focusFilterBox();"/>
    <key key="&selectAll.key;" modifiers="accel" oncommand="doSelectAll();"/>
  </keyset>
  <stringbundle id="cookieBundle"
                src="chrome://communicator/locale/permissions/cookieViewer.properties"/>
           
  <tabbox id="tabbox" flex="1">
    <tabs>
      <tab id="cookiesTab" label="&tab.cookiesonsystem.label;" help="cookies_stored"/>
      <tab id="permissionsTab" label="&tab.bannedservers.label;" help="cookie_sites"/>
    </tabs>
    <tabpanels id="panel" flex="1">
      <vbox class="tabpanel" id="system" flex="1">
        <vbox id="dummyContainer" flex="1">
          <!-- filter -->
          <hbox align="center">
            <textbox id="filter"
                     flex="1"
                     type="search"
                     emptytext="&search.emptytext;"
                     oncommand="filter(this.value);"/>
          </hbox>
          <separator class="thin"/>
          <label value="&div.cookiesonsystem.label;" control="cookiesTree"/>
          <separator class="thin"/>
          <tree id="cookiesTree" flex="1" style="height: 10em;"
                    onkeypress="HandleCookieKeyPress(event)"
                    onselect="CookieSelected();">
            <treecols>
              <treecol id="domainCol" label="&treehead.cookiedomain.label;" flex="5"
                       onclick="CookieColumnSort('rawHost', true);" persist="width hidden"
                       sortDirection="ascending"/>
              <splitter class="tree-splitter"/>
              <treecol id="nameCol" label="&treehead.cookiename.label;" flex="5"
                       onclick="CookieColumnSort('name', true);" persist="width hidden"/>
              <splitter class="tree-splitter"/>
              <treecol id="expiresCol" label="&treehead.cookieexpires.label;" flex="10"
                       hidden="true" onclick="CookieColumnSort('expires', true);" persist="width hidden"/>
            </treecols>
            <treechildren/>
          </tree>
          <groupbox>
            <caption label="&treehead.infoselected.label;"/>
            <!-- labels -->
            <grid flex="1">
              <columns>
                <column/>
                <column flex="1"/>
              </columns>
              <rows>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label value="&props.name.label;" control="ifl_name"/>
                  </hbox>
                  <textbox id="ifl_name" readonly="true" class="plain"/>
                </row>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label value="&props.value.label;" control="ifl_value"/>
                  </hbox>
                  <textbox id="ifl_value" readonly="true" class="plain"/>
                </row>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label id="ifl_isDomain" value="&props.domain.label;" control="ifl_host"/>
                  </hbox>
                  <textbox id="ifl_host" readonly="true" class="plain"/>
                </row>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label value="&props.path.label;" control="ifl_path"/>
                  </hbox>
                  <textbox id="ifl_path" readonly="true" class="plain"/>
                </row>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label value="&props.secure.label;" control="ifl_isSecure"/>
                  </hbox>
                  <textbox id="ifl_isSecure" readonly="true" class="plain"/>
                </row>

                <row align="center">
                  <hbox align="center" pack="end">
                    <label value="&props.expires.label;" control="ifl_expires"/>
                  </hbox>
                  <textbox id="ifl_expires" readonly="true" class="plain"/>
                </row>

              </rows>
            </grid>
          </groupbox>
          <hbox>
            <button id="removeCookie" disabled="true"
                          label="&button.removecookie.label;"
                          accesskey="&button.removecookie.accesskey;"
                          oncommand="DeleteCookie();"/>
            <button id="removeAllCookies"
                          label="&button.removeallcookies.label;"
                          accesskey="&button.removeallcookies.accesskey;"
                          oncommand="DeleteAllCookies();"/>
            <!--  todo: <button id="restoreCookies" class="dialog push" disabled="true" label="&button.restorecookie.label;" oncommand="RestoreCookies();"/> -->
          </hbox>
          <separator class="thin"/>
          <hbox align="start">
            <checkbox id="checkbox" label="&futureCookies.label;" accesskey="&futureCookies.accesskey;" persist="checked"/>
          </hbox>
        </vbox>
      </vbox>
      
      <vbox id="servers" flex="1">
          <description id="permissionsText" value="&div.bannedservers.label;"/>
          <separator class="thin"/>
          <hbox>
            <textbox id="cookie-site" flex="1" oninput="buttonEnabling(this);"/>
            <button id="btnBlock" label="&blockSite.label;" disabled="true"
                    accesskey="&blockSite.accesskey;"
                    oncommand="setCookiePermissions(nsIPermissionManager.DENY_ACTION);"/>
            <button id="btnSession" label="&allowSiteSession.label;" disabled="true"
                    accesskey="&allowSiteSession.accesskey;"
                    oncommand="setCookiePermissions(nsICookiePermission.ACCESS_SESSION);"/>
            <button id="btnAllow" label="&allowSite.label;" disabled="true"
                    accesskey="&allowSite.accesskey;"
                    oncommand="setCookiePermissions(nsIPermissionManager.ALLOW_ACTION);"/>
          </hbox>
          <separator class="thin"/>
          <tree id="permissionsTree" flex="1" style="height: 10em;"
                hidecolumnpicker="true"
                onkeypress="HandlePermissionKeyPress(event)"
                onselect="PermissionSelected();">
            <treecols>
              <treecol id="siteCol" label="&treehead.sitename.label;" flex="5"
                           onclick="PermissionColumnSort('rawHost', true);" persist="width"
                           sortDirection="ascending"/>
              <splitter class="tree-splitter"/>
              <treecol id="capabilityCol" label="&treehead.status.label;" flex="5"
                           onclick="PermissionColumnSort('capability', true);" persist="width"/>
            </treecols>
            <treechildren/>
          </tree>
          <hbox>
            <button id="removePermission" disabled="true" 
                          label="&removepermission.label;" 
                          accesskey="&removepermission.accesskey;" 
                          oncommand="DeletePermission();"/>
            <button id="removeAllPermissions"
                          label="&removeallpermissions.label;" 
                          accesskey="&removeallpermissions.accesskey;" 
                          oncommand="DeleteAllPermissions();"/>
          </hbox>
      </vbox>

    </tabpanels>
  </tabbox>
</dialog>