mail/components/preferences/cookies.xul
author Khushil Mistry <khushil324@gmail.com>
Sat, 23 Mar 2019 09:11:29 +0100
changeset 26149 f9d9f70bc49061a8e71cfa71f4a00f01e5977fa1
parent 26093 5dbc2aa48128a220935511736d120bbd99e2f8f4
child 26571 55a635377bed6cdeb57175d7e25a67b34dfce540
permissions -rw-r--r--
Bug 1536028 - remove grid usage from preferences' cookies.xul and display.inc.xul. r=mkmelin

<?xml version="1.0"?>

# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# 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/.

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/preferences/preferences.css" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/preferences/cookies.dtd" >

<window id="CookiesDialog" windowtype="mailnews:cookies"
        class="windowDialog" title="&window.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"
        style="width: &window.width;;"
        onload="gCookiesWindow.init();"
        onunload="gCookiesWindow.uninit();"
        persist="screenX screenY width height">

  <script src="chrome://messenger/content/preferences/cookies.js"/>

  <stringbundle id="bundlePreferences"
                src="chrome://messenger/locale/preferences/preferences.properties"/>

  <keyset>
    <key key="&windowClose.key;" modifiers="accel" oncommand="window.close();"/>
    <key key="&focusSearch1.key;" modifiers="accel" oncommand="gCookiesWindow.focusFilterBox();"/>
    <key key="&focusSearch2.key;" modifiers="accel" oncommand="gCookiesWindow.focusFilterBox();"/>
  </keyset>

  <vbox flex="1" class="contentPane largeDialogContainer">
    <hbox align="center">
      <label accesskey="&filter.accesskey;" control="filter">&filter.label;</label>
      <textbox type="search" id="filter" flex="1"
               aria-controls="cookiesList"
               oncommand="gCookiesWindow.filter();"/>
    </hbox>
    <separator class="thin"/>
    <label control="cookiesList" id="cookiesIntro" value="&cookiesonsystem.label;"/>
    <separator class="thin"/>
    <tree id="cookiesList" flex="1" style="height: 10em;"
          onkeypress="gCookiesWindow.onCookieKeyPress(event)"
          onselect="gCookiesWindow.onCookieSelected();"
          hidecolumnpicker="true" seltype="single">
      <treecols>
        <treecol id="domainCol" label="&cookiedomain.label;" flex="2" primary="true"
                 persist="width" onclick="gCookiesWindow.sort('rawHost');" />
        <splitter class="tree-splitter"/>
        <treecol id="nameCol" label="&cookiename.label;" flex="1"
                 persist="width"
                 onclick="gCookiesWindow.sort('name');"/>
      </treecols>
      <treechildren id="cookiesChildren"/>
    </tree>
    <hbox id="cookieInfoSettings" flex="1">
      <vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="nameLabel" control="name" value="&props.name.label;"/>
        </vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="valueLabel" control="value" value="&props.value.label;"/>
        </vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="isDomain" control="host" value="&props.domain.label;"/>
        </vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="pathLabel" control="path" value="&props.path.label;"/>
        </vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="isSecureLabel" control="isSecure" value="&props.secure.label;"/>
        </vbox>
        <vbox flex="1" pack="center" align="end">
          <label id="expiresLabel" control="expires" value="&props.expires.label;"/>
        </vbox>
        <vbox id="userContextLabel" flex="1" pack="center" align="end">
          <label control="userContext" value="&props.container.label;"/>
        </vbox>
      </vbox>
      <vbox flex="1">
        <textbox id="name" readonly="true" class="plain"/>
        <textbox id="value" readonly="true" class="plain"/>
        <textbox id="host" readonly="true" class="plain"/>
        <textbox id="path" readonly="true" class="plain"/>
        <textbox id="isSecure" readonly="true" class="plain"/>
        <textbox id="expires" readonly="true" class="plain"/>
        <textbox id="userContext" readonly="true" class="plain"/>
      </vbox>
    </hbox>
  </vbox>
  <hbox align="end">
    <hbox class="actionButtons" flex="1">
      <button id="removeSelectedCookies" disabled="true" icon="remove"
              label="&button.removecookie.label;" accesskey="&button.removecookie.accesskey;"
              oncommand="gCookiesWindow.deleteCookie();"/>
      <button id="removeAllCookies" disabled="true" icon="clear"
              label="&button.removeallcookies.label;" accesskey="&button.removeallcookies.accesskey;"
              oncommand="gCookiesWindow.deleteAllCookies();"/>
      <spacer flex="1"/>
#ifndef XP_MACOSX
      <button oncommand="close();" icon="close"
              label="&button.close.label;" accesskey="&button.close.accesskey;"/>
#endif
    </hbox>
    <resizer dir="bottomend"/>
  </hbox>
</window>