mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +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(),
|
xpcReport->Init(jsReport.report(), jsReport.message(),
|
||||||
nsContentUtils::IsCallerChrome(),
|
nsContentUtils::IsCallerChrome(),
|
||||||
inner ? inner->WindowID() : 0);
|
inner ? inner->WindowID() : 0);
|
||||||
if (inner) {
|
if (inner && jsReport.report()->errorNumber != JSMSG_OUT_OF_MEMORY) {
|
||||||
DispatchScriptErrorEvent(inner, JS_GetRuntime(cx()), xpcReport, exn);
|
DispatchScriptErrorEvent(inner, JS_GetRuntime(cx()), xpcReport, exn);
|
||||||
} else {
|
} else {
|
||||||
JS::Rooted<JSObject*> stack(cx(), xpc::FindExceptionStack(cx(), exn));
|
JS::Rooted<JSObject*> stack(cx(), xpc::FindExceptionStack(cx(), exn));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user