mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1289050 - Part 5.1: Use ASCII variants of JS_ReportWarning in dom/canvas. r=jwalden,jgilbert
This commit is contained in:
parent
ba7a576409
commit
13783142a7
@ -2436,7 +2436,9 @@ CanvasRenderingContext2D::CreatePattern(const CanvasImageSource& aSource,
|
||||
if (!srcSurf) {
|
||||
JSContext* context = nsContentUtils::GetCurrentJSContext();
|
||||
if (context) {
|
||||
JS_ReportWarning(context, "CanvasRenderingContext2D.createPattern() failed to snapshot source canvas.");
|
||||
JS_ReportWarningASCII(context,
|
||||
"CanvasRenderingContext2D.createPattern()"
|
||||
" failed to snapshot source canvas.");
|
||||
}
|
||||
aError.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
return nullptr;
|
||||
@ -2467,7 +2469,9 @@ CanvasRenderingContext2D::CreatePattern(const CanvasImageSource& aSource,
|
||||
if (!srcSurf) {
|
||||
JSContext* context = nsContentUtils::GetCurrentJSContext();
|
||||
if (context) {
|
||||
JS_ReportWarning(context, "CanvasRenderingContext2D.createPattern() failed to prepare source ImageBitmap.");
|
||||
JS_ReportWarningASCII(context,
|
||||
"CanvasRenderingContext2D.createPattern()"
|
||||
" failed to prepare source ImageBitmap.");
|
||||
}
|
||||
aError.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
return nullptr;
|
||||
|
@ -90,7 +90,7 @@ WebGLContext::GenerateWarning(const char* fmt, va_list ap)
|
||||
}
|
||||
|
||||
JSContext* cx = api.cx();
|
||||
JS_ReportWarning(cx, "WebGL: %s", buf);
|
||||
JS_ReportWarningASCII(cx, "WebGL: %s", buf);
|
||||
if (!ShouldGenerateWarnings()) {
|
||||
JS_ReportWarningASCII(cx,
|
||||
"WebGL: No further warnings will be reported for"
|
||||
|
Loading…
Reference in New Issue
Block a user