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 function testSteps()
11 {
12 let request = indexedDB.open("browser_forgetThisSite.js");
13 request.onerror = grabEventAndContinueHandler;
14 request.onsuccess = grabEventAndContinueHandler;
15 let event = yield undefined;
17 if (event.type == "error") {
18 testException = event.target.error.name;
19 }
20 else {
21 let db = event.target.result;
22 testResult = db.version;
23 }
25 finishTest()
26 yield undefined;
27 }
28 </script>
30 <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
32 </head>
34 <body onload="runTest();" onunload="finishTestNow();"></body>
36 </html>