dom/indexedDB/test/test_bug937006.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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