diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 8d02ec5b83ba1..45a9817100822 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -1420,7 +1420,8 @@ nsXPCComponents_Utils::ReportError(HandleValue error, HandleValue stack, fileUni, linebuf ? nsDependentString(linebuf, err->linebufLength()) : EmptyString(), - err->lineno, column, err->flags, "XPConnect JavaScript", innerWindowID); + err->lineno, column, err->flags, "XPConnect JavaScript", innerWindowID, + innerWindowID == 0 ? true : false); NS_ENSURE_SUCCESS(rv, NS_OK); console->LogMessage(scripterr); @@ -1438,9 +1439,9 @@ nsXPCComponents_Utils::ReportError(HandleValue error, HandleValue stack, return NS_OK; } - nsresult rv = - scripterr->InitWithWindowID(msg, fileName, EmptyString(), lineNo, 0, 0, - "XPConnect JavaScript", innerWindowID, true); + nsresult rv = scripterr->InitWithWindowID( + msg, fileName, EmptyString(), lineNo, 0, 0, "XPConnect JavaScript", + innerWindowID, innerWindowID ? true : false); NS_ENSURE_SUCCESS(rv, NS_OK); console->LogMessage(scripterr);