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 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!doctype html>
5 <html>
6 <head>
7 <meta charset="utf-8"/>
8 <title>Debugger test page</title>
9 </head>
11 <body>
12 <button onclick="test(10)">Click me!</button>
14 <script type="text/javascript">
15 function test(aNumber) {
16 var a, obj = { alpha: 1, beta: 2 };
17 var r = aNumber;
18 with (Math) {
19 a = PI * r * r;
20 with (obj) {
21 var foo = beta * PI;
22 debugger;
23 }
24 }
25 }
26 </script>
27 </body>
29 </html>