dom/indexedDB/test/browser_permissionsPrompt.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         const name = window.location.pathname;
    14         let request = indexedDB.open(name, 1);
    15         request.onerror = grabEventAndContinueHandler;
    16         request.onsuccess = grabEventAndContinueHandler;
    17         let event = yield undefined;
    19         if (event.type == "success") {
    20           testResult = event.target.result;
    21         }
    22         else {
    23           testException = event.target.error.name;
    24         }
    26         event.preventDefault();
    28         finishTest()
    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