Backed out changeset cb123997572c (bug 937006) for Desktop B2G mochitest orange.

This commit is contained in:
Ryan VanderMeulen 2013-11-21 12:40:42 -05:00
parent f82796b971
commit 3959d61b67
3 changed files with 1 additions and 30 deletions

View File

@ -278,7 +278,7 @@ IDBRequest::CaptureCaller()
const char* filename = nullptr;
uint32_t lineNo = 0;
if (!nsJSUtils::GetCallingLocation(cx, &filename, &lineNo)) {
NS_WARNING("Failed to get caller.");
MOZ_CRASH("Failed to get caller.");
return;
}

View File

@ -112,4 +112,3 @@ support-files =
[test_webapp_clearBrowserData_inproc_inproc.html]
[test_webapp_clearBrowserData_inproc_oop.html]
[test_webapp_clearBrowserData_oop_inproc.html]
[test_bug937006.html]

View File

@ -1,28 +0,0 @@
<!--
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"/>
<script>
// doing this IDBRequest should not be able to retrieve the filename and line
// number.
setTimeout(indexedDB.deleteDatabase.bind(indexedDB), 0, 'x');
setTimeout(function() {
ok(true, "Still alive");
SimpleTest.finish();
});
SimpleTest.waitForExplicitFinish();
</script>
</head>
<body></body>
</html>