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 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | |
michael@0 | 7 | <bindings id="scrollbarBindings" |
michael@0 | 8 | xmlns="http://www.mozilla.org/xbl" |
michael@0 | 9 | xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 10 | xmlns:xbl="http://www.mozilla.org/xbl"> |
michael@0 | 11 | |
michael@0 | 12 | <binding id="thumb" extends="xul:button" /> |
michael@0 | 13 | |
michael@0 | 14 | <binding id="scrollbar-base"> |
michael@0 | 15 | <handlers> |
michael@0 | 16 | <handler event="contextmenu" preventdefault="true" action="event.stopPropagation();"/> |
michael@0 | 17 | <handler event="click" preventdefault="true" action="event.stopPropagation();"/> |
michael@0 | 18 | <handler event="dblclick" action="event.stopPropagation();"/> |
michael@0 | 19 | <handler event="command" action="event.stopPropagation();"/> |
michael@0 | 20 | </handlers> |
michael@0 | 21 | </binding> |
michael@0 | 22 | |
michael@0 | 23 | <binding id="scrollbar" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base"> |
michael@0 | 24 | <content clickthrough="always"> |
michael@0 | 25 | <xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> |
michael@0 | 26 | <xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> |
michael@0 | 27 | <xul:slider flex="1" xbl:inherits="disabled,curpos,maxpos,pageincrement,increment,orient,sborient=orient"> |
michael@0 | 28 | <xul:thumb sbattr="scrollbar-thumb" xbl:inherits="orient,sborient=orient,collapsed=disabled" |
michael@0 | 29 | align="center" pack="center"/> |
michael@0 | 30 | </xul:slider> |
michael@0 | 31 | <xul:scrollbarbutton sbattr="scrollbar-up-bottom" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> |
michael@0 | 32 | <xul:scrollbarbutton sbattr="scrollbar-down-bottom" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> |
michael@0 | 33 | </content> |
michael@0 | 34 | </binding> |
michael@0 | 35 | </bindings> |