mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +00:00
Bug 1254380 part 3. Skip firing error events for mainthread out of memory exceptions via AutoJSAPI::ReportException. r=bholley
This commit is contained in:
parent
81b9b7ac71
commit
2e2d6cac3d
@ -545,7 +545,7 @@ AutoJSAPI::ReportException()
|
||||
xpcReport->Init(jsReport.report(), jsReport.message(),
|
||||
nsContentUtils::IsCallerChrome(),
|
||||
inner ? inner->WindowID() : 0);
|
||||
if (inner) {
|
||||
if (inner && jsReport.report()->errorNumber != JSMSG_OUT_OF_MEMORY) {
|
||||
DispatchScriptErrorEvent(inner, JS_GetRuntime(cx()), xpcReport, exn);
|
||||
} else {
|
||||
JS::Rooted<JSObject*> stack(cx(), xpc::FindExceptionStack(cx(), exn));
|
||||
|
Loading…
x
Reference in New Issue
Block a user