mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Backed out changeset cb123997572c (bug 937006) for Desktop B2G mochitest orange.
This commit is contained in:
parent
f82796b971
commit
3959d61b67
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user