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 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 xmlns:svg="http://www.w3.org/2000/svg"
6 xmlns:html="http://www.w3.org/1999/xhtml"
7 onload="boom();">
8 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
9 <script type="text/javascript">
11 SimpleTest.waitForExplicitFinish();
12 function boom()
13 {
14 var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
15 generatedShape = document.getElementById("s").childNodes[3];
16 generatedShape.appendChild(x);
17 document.documentElement.removeChild(document.getElementById("s"));
18 ok(true, "Didn't crash");
19 SimpleTest.finish();
20 }
22 </script>
24 <html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
25 <template>
26 <rule>
27 <conditions>
28 <content uri="?root"/>
29 <triple subject="?root"
30 predicate="urn:croczilla:xulsvg1:shapes"
31 object="?shapes"/>
32 <member container="?shapes" child="?shape" id="m"/>
33 </conditions>
34 <action>
35 <hbox id="p" uri="?shape" />
36 </action>
37 </rule>
38 </template>
39 </html:div>
40 </window>