toolkit/components/help/content/helpContextOverlay.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"?> 
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 <!DOCTYPE overlay [
     7     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
     8     %helpDTD;
     9 ]>
    10 <overlay id="contentAreaContextOverlay"
    11          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    13 # Help Window's right-click menu
    14   <popupset id="contentAreaContextSet">
    15     <menupopup id="contentAreaContextMenu"
    16                onpopupshowing="goUpdateCommand('cmd_copy')">
    17       <menuitem id="context-back"
    18                 label="&backButton.label;"
    19                 accesskey="&backButton.accesskey;"
    20                 observes="canGoBack"
    21                 oncommand="goBack()"/>
    22       <menuitem id="context-forward"
    23                 label="&forwardButton.label;"
    24                 accesskey="&forwardButton.accesskey;"
    25                 observes="canGoForward"
    26                 oncommand="goForward()"/>
    27       <menuseparator/>
    28       <menuitem id="context-copy"
    29                 label="&copyCmd.label;"
    30                 accesskey="&copyCmd.accesskey;"
    31                 command="cmd_copy"
    32                 disabled="true"/>
    33       <menuitem id="context-selectall"
    34                 label="&selectAllCmd.label;"
    35                 accesskey="&selectAllCmd.accesskey;"
    36                 command="cmd_selectAll"/>
    37       <menuseparator/>
    38       <menuitem id="zoom-in"
    39       	        label="&fullZoomEnlargeBtn.label;"
    40       	        accesskey="&fullZoomEnlargeBtn.accesskey;"
    41       	        oncommand="ZoomManager.enlarge();"/>
    42       <menuitem id="zoom-out"
    43       		label="&fullZoomReduceBtn.label;"
    44       		accesskey="&fullZoomReduceBtn.accesskey;"
    45       		oncommand="ZoomManager.reduce();"/>
    46 #ifdef XP_WIN
    47 #define HELP_ALWAYS_RAISED_TOGGLE
    48 #endif
    49 #ifdef HELP_ALWAYS_RAISED_TOGGLE
    50       <menuseparator/>
    51       <menuitem id="context-zlevel"
    52                 type="checkbox"
    53                 checked="true"
    54                 persist="checked"
    55                 label="&zLevel.label;"
    56                 accesskey="&zLevel.accesskey;"
    57                 oncommand="toggleZLevel(this);"/>
    58 #endif
    59     </menupopup>
    60   </popupset>
    61 </overlay>

mercurial