toolkit/components/alerts/resources/content/alert.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 <!DOCTYPE window [
     7 <!ENTITY % alertDTD SYSTEM "chrome://alerts/locale/alert.dtd">
     8 %alertDTD;
     9 ]>
    11 <?xml-stylesheet href="chrome://global/content/alerts/alert.css" type="text/css"?>
    12 <?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
    14 <window id="alertNotification"
    15         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    16         windowtype="alert:alert"
    17         xmlns:xhtml="http://www.w3.org/1999/xhtml"
    18         xhtml:role="alert"
    19         pack="start"
    20         onload="onAlertLoad();"
    21         onclick="onAlertClick();"
    22         onbeforeunload="onAlertBeforeUnload();">
    24   <script type="application/javascript" src="chrome://global/content/alerts/alert.js"/>
    26   <box id="alertBox" class="alertBox">
    27     <box>
    28       <hbox id="alertImageBox" class="alertImageBox" align="center" pack="center">
    29         <image id="alertImage"/>
    30       </hbox>
    32       <vbox id="alertTextBox" class="alertTextBox">
    33         <label id="alertTitleLabel" class="alertTitle plain"/>
    34         <label id="alertTextLabel" class="alertText plain"/>
    35       </vbox>
    36     </box>
    38     <vbox class="alertCloseBox">
    39       <toolbarbutton class="alertCloseButton close-icon"
    40                      tooltiptext="&closeAlert.tooltip;"
    41                      onclick="event.stopPropagation();"
    42                      oncommand="close();"/>
    43     </vbox>
    44   </box>
    46   <!-- This method is called inline because we want to make sure we establish the width
    47        and height of the alert before we fire the onload handler. -->
    48   <script type="application/javascript">prefillAlertInfo();</script>
    49 </window>

mercurial