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 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 7 | <?xml-stylesheet href="chrome://mozapps/skin/extensions/newaddon.css"?> |
michael@0 | 8 | |
michael@0 | 9 | <!DOCTYPE page [ |
michael@0 | 10 | <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > |
michael@0 | 11 | %brandDTD; |
michael@0 | 12 | <!ENTITY % newaddonDTD SYSTEM "chrome://mozapps/locale/extensions/newaddon.dtd"> |
michael@0 | 13 | %newaddonDTD; |
michael@0 | 14 | ]> |
michael@0 | 15 | |
michael@0 | 16 | <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 17 | xmlns:xhtml="http://www.w3.org/1999/xhtml" title="&title;" |
michael@0 | 18 | disablefastfind="true" id="addon-page" onload="initialize()" |
michael@0 | 19 | onunload="unload()" role="application" align="stretch" pack="stretch"> |
michael@0 | 20 | |
michael@0 | 21 | <xhtml:link rel="shortcut icon" style="display: none" |
michael@0 | 22 | href="chrome://mozapps/skin/extensions/extensionGeneric-16.png"/> |
michael@0 | 23 | |
michael@0 | 24 | <script type="application/javascript" |
michael@0 | 25 | src="chrome://mozapps/content/extensions/newaddon.js"/> |
michael@0 | 26 | |
michael@0 | 27 | <scrollbox id="addon-scrollbox" align="center"> |
michael@0 | 28 | <spacer id="spacer-start"/> |
michael@0 | 29 | |
michael@0 | 30 | <vbox id="addon-container" class="main-content"> |
michael@0 | 31 | <description>&intro;</description> |
michael@0 | 32 | |
michael@0 | 33 | <hbox id="addon-info"> |
michael@0 | 34 | <image id="icon"/> |
michael@0 | 35 | <vbox flex="1"> |
michael@0 | 36 | <label id="name"/> |
michael@0 | 37 | <label id="author"/> |
michael@0 | 38 | <label id="location" crop="end"/> |
michael@0 | 39 | </vbox> |
michael@0 | 40 | </hbox> |
michael@0 | 41 | |
michael@0 | 42 | <hbox id="warning"> |
michael@0 | 43 | <image id="warning-icon"/> |
michael@0 | 44 | <description flex="1">&warning;</description> |
michael@0 | 45 | </hbox> |
michael@0 | 46 | |
michael@0 | 47 | <checkbox id="allow" label="&allow;"/> |
michael@0 | 48 | <description id="later">&later;</description> |
michael@0 | 49 | |
michael@0 | 50 | <deck id="buttonDeck"> |
michael@0 | 51 | <hbox id="continuePanel"> |
michael@0 | 52 | <button id="continue-button" label="&continue;" |
michael@0 | 53 | oncommand="continueClicked()"/> |
michael@0 | 54 | </hbox> |
michael@0 | 55 | <hbox id="restartPanel"> |
michael@0 | 56 | <spacer id="restartSpacer"/> |
michael@0 | 57 | <description id="restartMessage" flex="1">&restartMessage;</description> |
michael@0 | 58 | <button id="restart-button" label="&restartButton;" oncommand="restartClicked()"/> |
michael@0 | 59 | <button id="cancel-button" label="&cancelButton;" oncommand="cancelClicked()"/> |
michael@0 | 60 | </hbox> |
michael@0 | 61 | </deck> |
michael@0 | 62 | </vbox> |
michael@0 | 63 | |
michael@0 | 64 | <spacer id="spacer-end"/> |
michael@0 | 65 | </scrollbox> |
michael@0 | 66 | </page> |