1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/indexedDB/test/test_bug937006.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<!DOCTYPE html> 1.9 +<html> 1.10 +<head> 1.11 + <title>Bug 937006 - "Hit MOZ_CRASH(Failed to get caller.)" using setTimeout on IndexedDB call</title> 1.12 + 1.13 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.14 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.15 + 1.16 +</head> 1.17 +<body onload="runTest();"> 1.18 + <script type="text/javascript;version=1.7"> 1.19 + 1.20 + function runTest() { 1.21 + // doing this IDBRequest should not be able to retrieve the filename and 1.22 + // line number. 1.23 + setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, 'x'); 1.24 + setTimeout(function() { 1.25 + ok(true, "Still alive"); 1.26 + SimpleTest.finish(); 1.27 + }, 10); 1.28 + } 1.29 + 1.30 + </script> 1.31 +</body> 1.32 +</html>