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