toolkit/components/printing/content/printProgress.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"?>
     8 <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
    10 <!DOCTYPE window SYSTEM "chrome://global/locale/printProgress.dtd">
    12 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    13         class="dialog"
    14         title="&printWindow.title;"
    15         style="width: 36em;"
    16         onload="onLoad()"
    17         onunload="onUnload()">
    19   <script type="application/javascript" src="chrome://global/content/printProgress.js"/>
    21     <!-- This is non-visible content that simply adds translatable string
    22          into the document so that it is accessible to JS code.
    24          XXX-TODO: 
    25           convert to use string bundles. 
    26     -->
    28     <data id="dialog.strings.dialogCloseLabel">&dialogClose.label;</data>
    29     <data id="dialog.strings.printComplete">&printComplete;</data>
    30     <data id="dialog.strings.progressText">&percentPrint;</data>
    31     <data id="dialog.strings.progressLabel">&progress;</data>
    32     <data id="dialog.strings.preparing">&preparing;</data>
    34     <grid flex="1">
    35       <columns>
    36         <column/>
    37         <column/>
    38         <column/>
    39       </columns>
    41       <rows>
    42         <row>
    43           <hbox pack="end">
    44             <label id="dialog.titleLabel" value="&title;"/>
    45           </hbox>
    46             <label id="dialog.title"/>
    47         </row>
    48         <row class="thin-separator">             
    49           <hbox pack="end">
    50             <label id="dialog.progressLabel" control="dialog.progress" value="&progress;"/>
    51           </hbox>
    52             <label id="dialog.tempLabel" value="&preparing;"/>
    53             <progressmeter id="dialog.progress" mode="normal" value="0"/>
    54           <hbox pack="end" style="min-width: 2.5em;">
    55             <label id="dialog.progressText"/>
    56           </hbox>
    57         </row>
    58       </rows>
    59     </grid>
    60     <separator/>
    61     <hbox id="CancelButton" pack="end">
    62       <button id="cancel" label="&dialogCancel.label;" icon="cancel"
    63         oncommand="doCancelButton()"/>
    64     </hbox>
    65 </window>

mercurial