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" class="reftest-wait">
2 <head>
4 <bindings xmlns="http://www.mozilla.org/xbl">
5 <binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding>
6 <binding id="bar"><content></content></binding>
7 </bindings>
9 <script type="text/javascript">
10 // <![CDATA[
12 function boom()
13 {
14 var bo = document.getElementById("bo");
15 var anon = SpecialPowers.wrap(document).getAnonymousNodes(bo)[0];
17 bo.style.MozBinding = "url(#bar)";
19 var fr = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
20 fr.setAttribute("src", "javascript:void 0;");
21 anon.appendChild(fr);
23 document.documentElement.removeAttribute("class");
24 }
26 ]]>
27 </script>
28 </head>
30 <body onload="setTimeout(boom, 100);">
32 <span style="-moz-binding: url(#foo)" id="bo"></span>
34 </body>
35 </html>