toolkit/content/macWindowMenu.inc

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.

michael@0 1 <script type="application/javascript" src="chrome://global/content/macWindowMenu.js"/>
michael@0 2 <commandset id="baseMenuCommandSet">
michael@0 3 <command id="minimizeWindow"
michael@0 4 label="&minimizeWindow.label;"
michael@0 5 oncommand="window.minimize();" />
michael@0 6 <command id="zoomWindow"
michael@0 7 label="&zoomWindow.label;"
michael@0 8 oncommand="zoomWindow();" />
michael@0 9 </commandset>
michael@0 10 <keyset id="baseMenuKeyset">
michael@0 11 <key id="key_minimizeWindow"
michael@0 12 command="minimizeWindow"
michael@0 13 key="&minimizeWindow.key;"
michael@0 14 modifiers="accel"/>
michael@0 15 </keyset>
michael@0 16 <menu id="windowMenu"
michael@0 17 label="&windowMenu.label;"
michael@0 18 datasources="rdf:window-mediator" ref="NC:WindowMediatorRoot"
michael@0 19 onpopupshowing="macWindowMenuDidShow();"
michael@0 20 hidden="false">
michael@0 21 <template>
michael@0 22 <rule>
michael@0 23 <menupopup>
michael@0 24 <menuitem uri="rdf:*"
michael@0 25 label="rdf:http://home.netscape.com/NC-rdf#Name"
michael@0 26 type="radio"
michael@0 27 name="windowList"
michael@0 28 oncommand="ShowWindowFromResource(event.target)"/>
michael@0 29 </menupopup>
michael@0 30 </rule>
michael@0 31 </template>
michael@0 32 <menupopup id="windowPopup">
michael@0 33 <menuitem command="minimizeWindow" key="key_minimizeWindow"/>
michael@0 34 <menuitem command="zoomWindow"/>
michael@0 35 <!-- decomment when "BringAllToFront" is implemented
michael@0 36 <menuseparator/>
michael@0 37 <menuitem label="&bringAllToFront.label;" disabled="true"/> -->
michael@0 38 <menuseparator id="sep-window-list"/>
michael@0 39 </menupopup>
michael@0 40 </menu>

mercurial