test_bug937006.html 854 B

12345678910111213141516171819202122232425262728293031
  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. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  10. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  11. </head>
  12. <body onload="runTest();">
  13. <script type="text/javascript;version=1.7">
  14. function runTest() {
  15. // doing this IDBRequest should not be able to retrieve the filename and
  16. // line number.
  17. SimpleTest.requestFlakyTimeout("untriaged");
  18. setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, 'x');
  19. setTimeout(function() {
  20. ok(true, "Still alive");
  21. SimpleTest.finish();
  22. }, 10);
  23. }
  24. </script>
  25. </body>
  26. </html>