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 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for Bug 601803</title>
5 <script type="application/javascript">
6 function runTest() {
7 document.domain = "example.org";
8 var thrown = false;
9 try {
10 document.getElementById("frame").contentDocument.adoptNode(document.createTextNode("foo"));
11 }
12 catch (e) {
13 thrown = true;
14 }
15 parent.postMessage(thrown, "*");
16 }
17 </script>
18 </head>
19 <body>
20 <iframe id="frame" src="http://test1.example.org/tests/content/base/test/file_bug601803b.html" onload="runTest();"></iframe>
21 </body>
22 </html>