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"?> <!-- -*- Mode: HTML -*- --> |
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/filepicker.css" type="text/css"?> |
michael@0 | 8 | |
michael@0 | 9 | <!DOCTYPE dialog SYSTEM "chrome://global/locale/filepicker.dtd" > |
michael@0 | 10 | |
michael@0 | 11 | <dialog id="main-window" |
michael@0 | 12 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
michael@0 | 13 | xmlns:nc="http://home.netscape.com/NC-rdf#" |
michael@0 | 14 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 15 | onload="filepickerLoad();" |
michael@0 | 16 | width="426" height="300" |
michael@0 | 17 | ondialogaccept="return selectOnOK();" |
michael@0 | 18 | ondialogcancel="return onCancel();" |
michael@0 | 19 | persist="screenX screenY width height"> |
michael@0 | 20 | |
michael@0 | 21 | <stringbundle id="bundle_filepicker" src="chrome://global/locale/filepicker.properties"/> |
michael@0 | 22 | <script type="application/javascript" src="chrome://global/content/filepicker.js"/> |
michael@0 | 23 | |
michael@0 | 24 | <hbox align="center"> |
michael@0 | 25 | <label value="&lookInMenuList.label;" control="lookInMenuList" accesskey="&lookInMenuList.accesskey;"/> |
michael@0 | 26 | <menulist id="lookInMenuList" flex="1" oncommand="onDirectoryChanged(event.target);" crop="start"> |
michael@0 | 27 | <menupopup id="lookInMenu"/> |
michael@0 | 28 | </menulist> |
michael@0 | 29 | <button id="folderUpButton" class="up-button" tooltiptext="&folderUp.tooltiptext;" oncommand="goUp();"/> |
michael@0 | 30 | <button id="homeButton" class="home-button" tooltiptext="&folderHome.tooltiptext;" oncommand="goHome();"/> |
michael@0 | 31 | <button id="newDirButton" hidden="true" class="new-dir-button" tooltiptext="&folderNew.tooltiptext;" oncommand="newDir();"/> |
michael@0 | 32 | </hbox> |
michael@0 | 33 | |
michael@0 | 34 | <hbox flex="1"> |
michael@0 | 35 | <deck id="errorShower" flex="1"> |
michael@0 | 36 | <tree id="directoryTree" flex="1" class="focusring" seltype="single" |
michael@0 | 37 | onclick="onClick(event);" |
michael@0 | 38 | ondblclick="onDblClick(event);" |
michael@0 | 39 | onkeypress="onKeypress(event);" |
michael@0 | 40 | onfocus="onTreeFocus(event);" |
michael@0 | 41 | onselect="onSelect(event);"> |
michael@0 | 42 | <treecols> |
michael@0 | 43 | <treecol id="FilenameColumn" label="&name.label;" flex="1"/> |
michael@0 | 44 | <splitter class="tree-splitter"/> |
michael@0 | 45 | <treecol id="FileSizeColumn" label="&size.label;" flex="1"/> |
michael@0 | 46 | <splitter class="tree-splitter"/> |
michael@0 | 47 | <treecol id="LastModifiedColumn" label="&lastModified.label;" flex="1"/> |
michael@0 | 48 | </treecols> |
michael@0 | 49 | <treechildren/> |
michael@0 | 50 | </tree> |
michael@0 | 51 | <label>&noPermissionError.label;</label> |
michael@0 | 52 | </deck> |
michael@0 | 53 | </hbox> |
michael@0 | 54 | |
michael@0 | 55 | <grid style="margin-top: 5px"> |
michael@0 | 56 | <columns> |
michael@0 | 57 | <column/> |
michael@0 | 58 | <column flex="1"/> |
michael@0 | 59 | </columns> |
michael@0 | 60 | |
michael@0 | 61 | <rows> |
michael@0 | 62 | <row align="center"> |
michael@0 | 63 | <label value="&textInput.label;" id="textInputLabel" control="textInput" accesskey="&textInput.accesskey;"/> |
michael@0 | 64 | <textbox id="textInput" flex="1" oninput="doEnabling()" |
michael@0 | 65 | type="autocomplete" autocompletesearch="file" |
michael@0 | 66 | onfocus="onTextFieldFocus();"/> |
michael@0 | 67 | </row> |
michael@0 | 68 | <row id="filterBox" hidden="true" align="center"> |
michael@0 | 69 | <label value="&filterMenuList.label;" control="filterMenuList" accesskey="&filterMenuList.accesskey;"/> |
michael@0 | 70 | <menulist id="filterMenuList" flex="1" oncommand="onFilterChanged(event.target);"/> |
michael@0 | 71 | </row> |
michael@0 | 72 | </rows> |
michael@0 | 73 | </grid> |
michael@0 | 74 | <hbox class="dialog-button-box" align="center"> |
michael@0 | 75 | <checkbox label="&showHiddenFiles.label;" oncommand="toggleShowHidden();" |
michael@0 | 76 | flex="1" accesskey="&showHiddenFiles.accesskey;"/> |
michael@0 | 77 | <button dlgtype="cancel" icon="cancel" class="dialog-button"/> |
michael@0 | 78 | <button dlgtype="accept" icon="open" class="dialog-button"/> |
michael@0 | 79 | </hbox> |
michael@0 | 80 | </dialog> |