toolkit/components/console/content/console.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"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
     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"?> 
     8 <?xml-stylesheet href="chrome://global/skin/console/console.css" type="text/css"?> 
     9 <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
    10 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
    12 <!DOCTYPE window [
    13   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
    14 ]>
    16 <window id="JSConsoleWindow"
    17         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    18         title="&errorConsole.title;"
    19         windowtype="global:console"
    20         width="640" height="480"
    21         screenX="10" screenY="10"
    22         persist="screenX screenY width height sizemode"
    23         onclose="return closeWindow(false);"> 
    25   <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    26   <script type="application/javascript" src="chrome://global/content/console.js"/>
    27   <script type="application/javascript" src="chrome://global/content/viewSourceUtils.js"/>
    29   <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
    31   <commandset id="editMenuCommands"/>
    33   <commandset id="consoleCommands">
    34     <command id="cmd_close" oncommand="closeWindow(true)"/>
    35   </commandset>
    37   <keyset id="consoleKeys">
    38     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
    39          command="cmd_close"/>
    40     <key id="key_close2" keycode="VK_ESCAPE" command="cmd_close"/>
    41     <key id="key_focus1" key="&focus1.commandkey;" modifiers="accel"
    42          oncommand="gTextBoxEval.focus()"/>
    43     <key id="key_focus2" key="&focus2.commandkey;" modifiers="alt"
    44          oncommand="gTextBoxEval.focus()"/>
    45   </keyset>
    47   <popupset id="ContextMenus">
    48     <menupopup id="ConsoleContext">
    49       <menuitem type="radio" id="Console:sortAscend"
    50                 label="&sortFirst.label;" accesskey="&sortFirst.accesskey;"
    51                 oncommand="changeSortOrder('forward');"/>
    52       <menuitem type="radio" id="Console:sortDescend"
    53                 label="&sortLast.label;" accesskey="&sortLast.accesskey;"
    54                 oncommand="changeSortOrder('reverse');"/>
    55       <menuseparator/>
    56       <menuitem id="menu_copy_cm" command="cmd_copy"
    57                 label="&copyCmd.label;" accesskey="&copyCmd.accesskey;"/>
    58     </menupopup>
    59   </popupset>
    61   <toolbox id="console-toolbox">
    62     <toolbar class="chromeclass-toolbar" id="ToolbarMode">
    63       <hbox id="viewGroup">
    64         <toolbarbutton type="radio" group="mode" id="Console:modeAll" 
    65                        label="&all.label;" accesskey="&all.accesskey;"
    66                        oncommand="changeMode('All');"/>
    67         <toolbarbutton type="radio" group="mode" id="Console:modeErrors"
    68                        label="&errors.label;" accesskey="&errors.accesskey;"
    69                        oncommand="changeMode('Errors');"/>
    70         <toolbarbutton type="radio" group="mode" id="Console:modeWarnings"
    71                        label="&warnings.label;" accesskey="&warnings.accesskey;"
    72                        oncommand="changeMode('Warnings');"/>
    73         <toolbarbutton type="radio" group="mode" id="Console:modeMessages"
    74                      label="&messages.label;" accesskey="&messages.accesskey;"
    75                      oncommand="changeMode('Messages');"/>
    76       </hbox>
    77       <toolbarseparator/>
    78       <toolbarbutton id="Console:clear" oncommand="clearConsole();"
    79                      label="&clear.label;" accesskey="&clear.accesskey;"/>
    80     </toolbar>
    82     <toolbar class="chromeclass-toolbar" id="ToolbarEval" align="center" nowindowdrag="true">
    83       <label value="&codeEval.label;" accesskey="&codeEval.accesskey;" control="TextboxEval"/>
    84       <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
    85       <toolbarbutton id="ButtonEval" label="&evaluate.label;"
    86                      accesskey="&evaluate.accesskey;" oncommand="evaluateTypein()"/>
    87     </toolbar>
    88   </toolbox>
    90   <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
    92   <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
    94   <statusbar>
    95     <statusbarpanel flex="1" pack="start">
    96       <label value="&filter2.label;" control="Filter"/>
    97       <textbox accesskey="&filter2.accesskey;" type="search"
    98                id="Filter" oncommand="changeFilter();"/>
    99     </statusbarpanel>
   100   </statusbar>
   101 </window>

mercurial