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 <html class="reftest-wait">
2 <head>
3 <script>
5 // document.write() doesn't play well with reftest-wait, so we need to use an
6 // iframe.
7 //
8 // This test is designed to trigger an assertion, but that assertion depends on
9 // non-deterministic hashtable iteration ordering. The assertion seems to happen
10 // around 80% of the time, so we just run the operation 10 times.
12 var i = 0;
13 function iterate() {
14 ++i;
15 if (i < 10) {
16 document.getElementById("f").src = "752038-iframe.html";
17 } else {
18 document.documentElement.removeAttribute("class");
19 }
20 }
21 window.addEventListener('message', iterate, false);
23 </script>
24 </head>
25 <body>
26 <iframe id="f" src="752038-iframe.html"></iframe>
27 </body>
28 </html>