dom/indexedDB/test/test_bug937006.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>Bug 937006 - "Hit MOZ_CRASH(Failed to get caller.)" using setTimeout on IndexedDB call</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 </head>
    14 <body onload="runTest();">
    15   <script type="text/javascript;version=1.7">
    17   function runTest() {
    18     // doing this IDBRequest should not be able to retrieve the filename and
    19     // line number.
    20     setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, 'x');
    21     setTimeout(function() {
    22       ok(true, "Still alive");
    23       SimpleTest.finish();
    24     }, 10);
    25   }
    27   </script>
    28 </body>
    29 </html>

mercurial