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 <!-- Any copyright is dedicated to the Public Domain.
4 - http://creativecommons.org/publicdomain/zero/1.0/ -->
5 <head>
6 <meta charset="utf-8">
7 <title>Page creating an popup inside the Sandbox</title>
9 <script>
11 var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
13 var uri = "data:text/html,";
14 uri += encodeURI("<body onload='setTimeout(window.close, 1000)'>");
16 var win = window.open(uri, "sandbox_popup", strWindowFeatures);
18 </script>
20 </head>
22 <body>
24 </body>
25 </html>