Sat, 03 Jan 2015 20:18:00 +0100
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 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 6 | |
michael@0 | 7 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 8 | <!DOCTYPE dialog SYSTEM "chrome://global/locale/printdialog.dtd"> |
michael@0 | 9 | |
michael@0 | 10 | <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 11 | onload="onLoad();" |
michael@0 | 12 | ondialogaccept="return onAccept();" |
michael@0 | 13 | oncancel="return onCancel();" |
michael@0 | 14 | buttoniconaccept="print" |
michael@0 | 15 | title="&printDialog.title;" |
michael@0 | 16 | persist="screenX screenY" |
michael@0 | 17 | screenX="24" screenY="24"> |
michael@0 | 18 | |
michael@0 | 19 | <script type="application/javascript" src="chrome://global/content/printdialog.js"/> |
michael@0 | 20 | |
michael@0 | 21 | <stringbundle id="printingBundle" src="chrome://global/locale/printing.properties"/> |
michael@0 | 22 | |
michael@0 | 23 | <groupbox> |
michael@0 | 24 | <caption label="&printer.label;"/> |
michael@0 | 25 | |
michael@0 | 26 | <grid> |
michael@0 | 27 | <columns> |
michael@0 | 28 | <column/> |
michael@0 | 29 | <column flex="1"/> |
michael@0 | 30 | <column/> |
michael@0 | 31 | </columns> |
michael@0 | 32 | |
michael@0 | 33 | <rows> |
michael@0 | 34 | <row align="center"> |
michael@0 | 35 | <hbox align="center" pack="end"> |
michael@0 | 36 | <label id="printerLabel" |
michael@0 | 37 | value="&printerInput.label;" |
michael@0 | 38 | accesskey="&printerInput.accesskey;" |
michael@0 | 39 | control="printerList"/> |
michael@0 | 40 | </hbox> |
michael@0 | 41 | <menulist id="printerList" flex="1" type="description" oncommand="setPrinterDefaultsForSelectedPrinter();"/> |
michael@0 | 42 | <button id="properties" |
michael@0 | 43 | label="&propertiesButton.label;" |
michael@0 | 44 | accesskey="&propertiesButton.accesskey;" |
michael@0 | 45 | icon="properties" |
michael@0 | 46 | oncommand="displayPropertiesDialog();"/> |
michael@0 | 47 | </row> |
michael@0 | 48 | <row align="center"> |
michael@0 | 49 | <hbox align="center" pack="end"> |
michael@0 | 50 | <label id="descTextLabel" control="descText" value="&descText.label;"/> |
michael@0 | 51 | </hbox> |
michael@0 | 52 | <label id="descText"/> |
michael@0 | 53 | <checkbox id="fileCheck" |
michael@0 | 54 | checked="false" |
michael@0 | 55 | label="&fileCheck.label;" |
michael@0 | 56 | accesskey="&fileCheck.accesskey;" |
michael@0 | 57 | pack="end"/> |
michael@0 | 58 | </row> |
michael@0 | 59 | </rows> |
michael@0 | 60 | </grid> |
michael@0 | 61 | </groupbox> |
michael@0 | 62 | |
michael@0 | 63 | <hbox> |
michael@0 | 64 | <groupbox flex="1"> |
michael@0 | 65 | <caption label="&printrangeGroup.label;"/> |
michael@0 | 66 | |
michael@0 | 67 | <radiogroup id="printrangeGroup"> |
michael@0 | 68 | <radio id="allpagesRadio" |
michael@0 | 69 | label="&allpagesRadio.label;" |
michael@0 | 70 | accesskey="&allpagesRadio.accesskey;" |
michael@0 | 71 | oncommand="doPrintRange(0)"/> |
michael@0 | 72 | <hbox align="center"> |
michael@0 | 73 | <radio id="rangeRadio" |
michael@0 | 74 | label="&rangeRadio.label;" |
michael@0 | 75 | accesskey="&rangeRadio.accesskey;" |
michael@0 | 76 | oncommand="doPrintRange(1)"/> |
michael@0 | 77 | <label id="frompageLabel" |
michael@0 | 78 | control="frompageInput" |
michael@0 | 79 | value="&frompageInput.label;" |
michael@0 | 80 | accesskey="&frompageInput.accesskey;"/> |
michael@0 | 81 | <textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/> |
michael@0 | 82 | <label id="topageLabel" |
michael@0 | 83 | control="topageInput" |
michael@0 | 84 | value="&topageInput.label;" |
michael@0 | 85 | accesskey="&topageInput.accesskey;"/> |
michael@0 | 86 | <textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/> |
michael@0 | 87 | </hbox> |
michael@0 | 88 | <radio id="selectionRadio" |
michael@0 | 89 | label="&selectionRadio.label;" |
michael@0 | 90 | accesskey="&selectionRadio.accesskey;" |
michael@0 | 91 | oncommand="doPrintRange(2)"/> |
michael@0 | 92 | </radiogroup> |
michael@0 | 93 | </groupbox> |
michael@0 | 94 | |
michael@0 | 95 | <groupbox flex="1"> |
michael@0 | 96 | <caption label="&copies.label;"/> |
michael@0 | 97 | <hbox align="center"> |
michael@0 | 98 | <label control="numCopiesInput" |
michael@0 | 99 | value="&numCopies.label;" |
michael@0 | 100 | accesskey="&numCopies.accesskey;"/> |
michael@0 | 101 | <textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/> |
michael@0 | 102 | </hbox> |
michael@0 | 103 | </groupbox> |
michael@0 | 104 | </hbox> |
michael@0 | 105 | |
michael@0 | 106 | <groupbox flex="1"> |
michael@0 | 107 | <caption label="&printframeGroup.label;" id="printframeGroupLabel"/> |
michael@0 | 108 | <radiogroup id="printframeGroup"> |
michael@0 | 109 | <radio id="aslaidoutRadio" |
michael@0 | 110 | label="&aslaidoutRadio.label;" |
michael@0 | 111 | accesskey="&aslaidoutRadio.accesskey;"/> |
michael@0 | 112 | <radio id="selectedframeRadio" |
michael@0 | 113 | label="&selectedframeRadio.label;" |
michael@0 | 114 | accesskey="&selectedframeRadio.accesskey;"/> |
michael@0 | 115 | <radio id="eachframesepRadio" |
michael@0 | 116 | label="&eachframesepRadio.label;" |
michael@0 | 117 | accesskey="&eachframesepRadio.accesskey;"/> |
michael@0 | 118 | </radiogroup> |
michael@0 | 119 | </groupbox> |
michael@0 | 120 | |
michael@0 | 121 | <!-- used to store titles and labels --> |
michael@0 | 122 | <data style="display:none;" id="printButton" label="&printButton.label;"/> |
michael@0 | 123 | <data style="display:none;" id="fpDialog" label="&fpDialog.title;"/> |
michael@0 | 124 | |
michael@0 | 125 | </dialog> |
michael@0 | 126 |