toolkit/mozapps/extensions/content/blocklist.xml

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"?>
     3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     4    - License, v. 2.0. If a copy of the MPL was not distributed with this
     5    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <!DOCTYPE bindings [
     8   <!ENTITY % blocklistDTD SYSTEM "chrome://mozapps/locale/extensions/blocklist.dtd" >
     9   %blocklistDTD;
    10 ]>
    12 <bindings id="blocklistBindings"
    13           xmlns="http://www.mozilla.org/xbl"
    14           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    15           xmlns:xbl="http://www.mozilla.org/xbl">
    17   <binding id="hardblockedaddon">
    18     <content align="start">
    19       <xul:image xbl:inherits="src=icon"/>
    20       <xul:vbox flex="1">
    21         <xul:hbox class="addon-name-version">
    22           <xul:label class="addonName" crop="end" xbl:inherits="value=name"/>
    23           <xul:label class="addonVersion" xbl:inherits="value=version"/>
    24         </xul:hbox>
    25         <xul:hbox>
    26           <xul:spacer flex="1"/>
    27           <xul:label class="blockedLabel" value="&blocklist.blocked.label;"/>
    28         </xul:hbox>
    29       </xul:vbox>
    30     </content>
    31   </binding>
    33   <binding id="softblockedaddon">
    34     <content align="start">
    35       <xul:image xbl:inherits="src=icon"/>
    36       <xul:vbox flex="1">
    37         <xul:hbox class="addon-name-version">
    38           <xul:label class="addonName" crop="end" xbl:inherits="value=name"/>
    39           <xul:label class="addonVersion" xbl:inherits="value=version"/>
    40         </xul:hbox>
    41         <xul:hbox>
    42           <xul:spacer flex="1"/>
    43           <xul:checkbox class="disableCheckbox" checked="true" label="&blocklist.checkbox.label;"/>
    44         </xul:hbox>
    45       </xul:vbox>
    46     </content>
    47     <implementation>
    48       <field name="_checkbox">
    49         document.getAnonymousElementByAttribute(this, "class", "disableCheckbox")
    50       </field>
    51       <property name="checked" readonly="true">
    52         <getter>
    53           return this._checkbox.checked;
    54         </getter>
    55       </property>
    56     </implementation>
    57   </binding>
    58 </bindings>

mercurial