Bug 1206907 - GenerateWarning should output to Web Console, not Browser Console. - r=bholley

This commit is contained in:
Jeff Gilbert 2015-09-22 15:51:01 -07:00
parent 4b3d721ca7
commit 0b43ed5707

View File

@ -499,6 +499,8 @@ WebGLContext::GenerateWarning(const char* fmt, va_list ap)
return;
}
api.TakeOwnershipOfErrorReporting();
JSContext* cx = api.cx();
JS_ReportWarning(cx, "WebGL: %s", buf);
if (!ShouldGenerateWarnings()) {