test_bug937006.html (819B)
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 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"> 16 17 function runTest() { 18 // doing this IDBRequest should not be able to retrieve the filename and 19 // line number. 20 SimpleTest.requestFlakyTimeout("untriaged"); 21 setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, "x"); 22 setTimeout(function() { 23 ok(true, "Still alive"); 24 SimpleTest.finish(); 25 }, 10); 26 } 27 28 </script> 29 </body> 30 </html>