2013-11-23 23:25:18 +04:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Bug 937006 - "Hit MOZ_CRASH(Failed to get caller.)" using setTimeout on IndexedDB call</title>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body onload="runTest();">
|
2017-02-23 00:10:07 +03:00
|
|
|
<script type="text/javascript">
|
2013-11-23 23:25:18 +04:00
|
|
|
|
|
|
|
function runTest() {
|
|
|
|
// doing this IDBRequest should not be able to retrieve the filename and
|
|
|
|
// line number.
|
2014-12-11 21:34:40 +03:00
|
|
|
SimpleTest.requestFlakyTimeout("untriaged");
|
2017-05-10 19:19:34 +03:00
|
|
|
setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, "x");
|
2013-11-23 23:25:18 +04:00
|
|
|
setTimeout(function() {
|
|
|
|
ok(true, "Still alive");
|
|
|
|
SimpleTest.finish();
|
|
|
|
}, 10);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|