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 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=667612
5 -->
6 <head>
7 <title>Test for Bug 667612</title>
8 <script type="text/javascript" src="/MochiKit/packed.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=667612">Mozilla Bug 667612</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 xhr = new XMLHttpRequest;
22 w = new Worker("empty.js");
23 window.addEventListener("load", null, false);
24 document.addEventListener("load", null, false);
25 document.body.addEventListener("load", null, false);
26 xhr.addEventListener("load", null, false);
27 w.addEventListener("load", null, false);
28 window.addEventListener("load", undefined, false);
29 document.addEventListener("load", undefined, false);
30 document.body.addEventListener("load", undefined, false);
31 xhr.addEventListener("load", undefined, false);
32 w.addEventListener("load", undefined, false);
34 ok(true, "didn't throw");
36 </script>
37 </pre>
38 </body>
39 </html>