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 <!-- The bug number is pulled from the test URL -->
5 <title>JSD Test for Bug AUTOFILLED</title>
6 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
8 <script type="application/javascript" src="jsd-test.js"></script>
9 <script type="application/javascript">
10 var BUG = 638178;
11 var TEST_SCRIPT = "test-bug638178-execlines.js";
12 document.getElementsByTagName("title")[0].innerHTML = "JSD Test for Bug " + BUG;
14 SimpleTest.waitForExplicitFinish();
16 function runTest() {
17 console.log("start of runTest, loading script");
18 loadScript(TEST_SCRIPT, document.getElementById("test"));
19 console.log("end of runTest");
20 }
22 function setupTest() {
23 var buglink = document.getElementById("buglink");
24 buglink.href = "https://bugzilla.mozilla.org/show_bug.cgi?id=" + BUG;
25 buglink.innerHTML = "Mozilla Bug " + BUG;
26 }
27 </script>
28 </head>
29 <body onLoad='setupTest(); setupJSD();'>
31 <a id="buglink" target="_blank"></a>
32 <p id="display"></p>
34 <div id="content" style="display: none">
35 <pre id='test'>
36 </pre>
37 </div>
39 <div id='test-output'>
40 </div>
42 </body>
43 </html>