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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml">
2 <head>
4 <bindings xmlns="http://www.mozilla.org/xbl">
5 <binding id="ab"><content><html:span>a b<children/></html:span></content></binding>
6 <binding id="empty"><content></content></binding>
7 </bindings>
9 <script type="text/javascript">
11 function boom()
12 {
13 document.getElementById("td").style.MozBinding = "url('#empty')";
14 }
16 </script>
18 </head>
20 <body onload="boom();"><div style="width: 1px;"><span style="-moz-binding: url(#ab);"><td id="td"/></span></div></body>
21 </html>