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