dom/indexedDB/test/browser_forgetThisSiteAdd.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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", 11);
    13         request.onerror = grabEventAndContinueHandler;
    14         request.onupgradeneeded = 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;
    23           testResult = db.version;
    25           event.target.transaction.oncomplete = finishTest;
    26           yield undefined;
    27         }
    29         yield undefined;
    30       }
    31     </script>
    33     <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
    35   </head>
    37   <body onload="runTest();" onunload="finishTestNow();"></body>
    39 </html>

mercurial