dom/indexedDB/test/test_bug847147.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 <!DOCTYPE html>
     6 <html>
     7 <head>
     8   <title>Indexed Database Property Test</title>
    10   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    13   <script type="text/javascript;version=1.7" src="unit/test_transaction_lifetimes.js"></script>
    14   <script type="text/javascript;version=1.7" src="helpers.js"></script>
    16 <script>
    18 var win;
    19 var r1;
    21 function e()
    22 {
    23   win = window.open("data:text/html,<body onload='opener.f()'>1", "_blank", "");
    24 }
    26 function f()
    27 {
    28   setTimeout(function() {
    29     r1 = win.document.documentElement;
    30     win.location.replace("data:text/html,<body onload='opener.g()'>2");
    31   }, 0);
    32 }
    34 function g()
    35 {
    36   r1.appendChild(document.createElement("iframe"));
    37   setTimeout(function() {
    38     win.location = "data:text/html,<body onload='opener.h()'>3";
    39   }, 0);
    40 }
    42 function h()
    43 {
    44   win.close();
    45   ok(true, "This test is looking for assertions so this is irrelevant.");
    46   SimpleTest.finish();
    47 }
    49 SimpleTest.waitForExplicitFinish();
    51 </script>
    52 </head>
    54 <body onload="e();">
    55 <button onclick="e();">Start test</button>
    56 </body>
    57 </html>

mercurial