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