|
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> |
|
9 |
|
10 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
12 |
|
13 </head> |
|
14 <body onload="runTest();"> |
|
15 <script type="text/javascript;version=1.7"> |
|
16 |
|
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 } |
|
26 |
|
27 </script> |
|
28 </body> |
|
29 </html> |