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

mercurial