mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 08:40:56 +00:00
Fixing bug 63484. Making mozilla not spit out messages about javascript errors when reporting a javascript warning. r=pollmann.netscape.com, sr=brendan@mozilla.org
This commit is contained in:
parent
96c8269892
commit
5530b85619
@ -180,7 +180,7 @@ NS_ScriptErrorReporter(JSContext *cx,
|
||||
error.AppendWithConversion(": ");
|
||||
error.Append(NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage));
|
||||
error.AppendWithConversion("\n");
|
||||
if (status != nsEventStatus_eIgnore)
|
||||
if (status != nsEventStatus_eIgnore && !JSREPORT_IS_WARNING(report->flags))
|
||||
error.AppendWithConversion("Error was suppressed by event handler\n");
|
||||
|
||||
char *errorStr = error.ToNewCString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user