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 Property Test</title>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
12 <script type="text/javascript;version=1.7">
13 function testSteps()
14 {
15 const name = window.location.pathname;
17 // Test for IDBKeyRange and indexedDB availability in content windows.
18 let keyRange = IDBKeyRange.only(42);
19 ok(keyRange, "Got keyRange");
21 let request = indexedDB.open(name, 1);
22 request.onerror = errorHandler;
23 request.onsuccess = grabEventAndContinueHandler;
24 let event = yield undefined;
26 let db = event.target.result;
27 ok(db, "Got database");
29 finishTest();
30 yield undefined;
31 }
32 </script>
33 <script type="text/javascript;version=1.7" src="helpers.js"></script>
34 </head>
36 <body onload="runTest();"></body>
38 </html>