dom/indexedDB/test/test_bug937006.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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