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 <meta charset="UTF-8">
5 <title>Test for empty stack in console</title>
6 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
8 </head>
9 <body>
10 <script type="application/javascript">
11 SimpleTest.waitForExplicitFinish();
13 window.setTimeout(console.log.bind(console), 0, "xyz");
15 window.addEventListener("fake", console.log.bind(console, "xyz"));
17 window.addEventListener("fake", function() {
18 ok(true, "Still alive");
19 SimpleTest.finish();
20 });
22 window.dispatchEvent(new Event("fake"));
23 </script>
24 </pre>
25 </body>
26 </html>