mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1206907 - GenerateWarning should output to Web Console, not Browser Console. - r=bholley
This commit is contained in:
parent
4b3d721ca7
commit
0b43ed5707
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user