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 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <html>
6 <head>
7 <title>Indexed Database Test</title>
9 <script type="text/javascript;version=1.7">
10 let db;
11 let i = 0;
13 function onAddMore() {
14 const name = window.location.pathname + i++;
16 let request = indexedDB.open(name, 1);
17 request.onerror = errorHandler;
18 request.onsuccess = grabEventAndContinueHandler;
20 request.onsuccess = function(event) {
21 setTimeout(testFinishedCallback, 0, "complete");
22 }
23 request.onerror = function(event) {
24 setTimeout(testFinishedCallback, 0, "abort");
25 }
26 }
28 function onDone() {
29 window.removeEventListener("indexedDB-addMore", onAddMore, true);
30 window.removeEventListener("indexedDB-done", onDone, true);
32 testResult = "finished";
33 testException = undefined;
34 finishTest();
35 }
37 function testSteps()
38 {
39 window.addEventListener("indexedDB-addMore", onAddMore, true);
40 window.addEventListener("indexedDB-done", onDone, true);
42 setTimeout(testFinishedCallback, 0, "ready");
43 yield undefined;
44 }
45 </script>
47 <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
49 </head>
51 <body onload="runTest();" onunload="finishTestNow();"></body>
53 </html>