toolkit/content/customizeCharset.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 SYSTEM "chrome://global/locale/customizeCharset.dtd">
    11 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    12         title="&title.label;"
    13         onload="Init();"
    14         ondialogaccept="return Save();"
    15         persist="width height">
    17   <script type="application/javascript" src="chrome://global/content/customizeCharset.js"/>
    18   <script type="application/javascript">
    19   <![CDATA[
    20     var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
    21     observerService.notifyObservers(null, "charsetmenu-selected", "other");
    22   ]]>
    23   </script>
    25   <!-- The two-pane -->
    26   <hbox flex="1">
    27     <vbox flex="1">
    28       <label value="&additional.label;" control="available_charsets"/>
    29       <!-- Available Charsets Tree -->
    30       <listbox id="available_charsets" flex="1" seltype="multiple"
    31             onfocus = "document.getElementById('active_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));"
    32             onselect="update_buttons();"
    33             ondblclick="AddAvailableCharset();"/>
    35       <separator class="thin"/>
    37       <hbox align="center">
    38         <button id="add_button" oncommand="AddAvailableCharset();"
    39                 label="&add.label;" icon="add"  accesskey="&add.accessKey;"/>
    40       </hbox>
    41     </vbox>
    43     <separator orient="vertical"/>
    45     <vbox flex="1">
    46       <label value="&current.label;" control="active_charsets"/>
    47       <listbox id="active_charsets" flex="1" seltype="multiple"
    48             onfocus = "document.getElementById('available_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));"
    49             onselect="update_buttons();"
    50             ondblclick="RemoveActiveCharset();"/>
    52       <separator class="thin"/>
    53       <hbox align="center">
    54         <button id="up_button" label="&moveUp.label;" icon="go-up"
    55                 accesskey="&moveUp.accessKey;" oncommand="MoveUp();"/>
    56         <button id="down_button" label="&moveDown.label;" icon="go-down"
    57                 accesskey="&moveDown.accessKey;" oncommand="MoveDown();"/>
    58         <button id="remove_button" oncommand="RemoveActiveCharset();" icon="remove"
    59                 label="&remove.label;" accesskey="&remove.accessKey;"/>
    60       </hbox>
    61     </vbox> 
    62   </hbox>
    63 </dialog>

mercurial