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 class="reftest-wait">
3 <head>
4 <script>
6 function boom()
7 {
8 var frame = document.getElementById("frame");
9 var frameWin = frame.contentWindow;
10 var frameWinner = Object.create(frameWin);
11 var v = frameWinner.captureEvents.bind(frameWinner);
12 frame.src = "local-file-not-found";
13 setTimeout(function() { setTimeout(finish); v(0); });
14 }
16 function finish() {
17 document.documentElement.removeAttribute('class');
18 }
20 </script>
21 </head>
23 <body onload="boom();">
24 <iframe id="frame" src="data:text/html,1"></iframe>
25 </body>
26 </html>