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.
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/. -->
7 <bindings id="resizerBindings"
8 xmlns="http://www.mozilla.org/xbl">
10 <binding id="resizer">
11 <resources>
12 <stylesheet src="chrome://global/skin/resizer.css"/>
13 </resources>
14 <implementation>
15 <constructor>
16 <![CDATA[
17 // don't do this for viewport resizers; causes a crash related to
18 // bugs 563665 and 581536 otherwise
19 if (this.parentNode == this.ownerDocument.documentElement)
20 return;
22 // if the direction is rtl, set the rtl attribute so that the
23 // stylesheet can use this to make the cursor appear properly
24 var direction = window.getComputedStyle(this, "").direction;
25 if (direction == "rtl") {
26 this.setAttribute("rtl", "true");
27 }
28 ]]>
29 </constructor>
30 </implementation>
31 </binding>
33 </bindings>