browser/components/downloads/content/indicatorOverlay.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 <!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- -->
     3 <!-- vim: set ts=2 et sw=2 tw=80: -->
     5 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     6    - License, v. 2.0. If a copy of the MPL was not distributed with this file,
     7    - You can obtain one at http://mozilla.org/MPL/2.0/. -->
     9 <!DOCTYPE overlay [
    10   <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
    11   %browserDTD;
    12 ]>
    14 <overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    15          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    16          id="indicatorOverlay">
    18   <!-- We dynamically add the stack with the progress meter and notification icon,
    19        originally loaded lazily because of performance reasons, to the existing
    20        downloads-button. -->
    21   <toolbarbutton id="downloads-button" indicator="true">
    22     <!-- The panel's anchor area is smaller than the outer button, but must
    23          always be visible and must not move or resize when the indicator
    24          state changes, otherwise the panel could change its position or lose
    25          its arrow unexpectedly. -->
    26     <stack id="downloads-indicator-anchor" class="toolbarbutton-icon">
    27       <vbox id="downloads-indicator-progress-area" pack="center">
    28         <description id="downloads-indicator-counter"/>
    29         <progressmeter id="downloads-indicator-progress" class="plain"
    30                        min="0" max="100"/>
    31       </vbox>
    32       <vbox id="downloads-indicator-icon"/>
    33     </stack>
    34   </toolbarbutton>
    35 </overlay>

mercurial