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 <script>
5 function test_func() {
6 var bar = new Option();
7 parent.is(bar.ownerDocument, document,
8 "Unexpected document for our new option");
9 bar = new Image();
10 parent.is(bar.ownerDocument, document,
11 "Unexpected document for our new image");
12 bar = new parent.Option();
13 parent.is(bar.ownerDocument, parent.document,
14 "Unexpected document for parent new option");
15 bar = new parent.Image();
16 parent.is(bar.ownerDocument, parent.document,
17 "Unexpected document for parent new image");
18 parent.isnot(parent.document, document, "Documents should be different");
19 }
20 </script>
21 </head>
22 <html>