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