зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1289813 - split out safe mode from FEATURE_FAILURE_WEBGL_DISABLED. r=jrmuizel
MozReview-Commit-ID: Jmp911jYjix --HG-- extra : rebase_source : 825eaae61c3a685ff2853eba3820a02087779dd5
This commit is contained in:
Родитель
e53c23031c
Коммит
fbfff14ea5
|
@ -957,7 +957,11 @@ WebGLContext::SetDimensions(int32_t signedWidth, int32_t signedHeight)
|
|||
disabled |= gfxPlatform::InSafeMode();
|
||||
|
||||
if (disabled) {
|
||||
failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_WEBGL_DISABLED");
|
||||
if (gfxPlatform::InSafeMode()) {
|
||||
failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_WEBGL_SAFEMODE");
|
||||
} else {
|
||||
failureId = NS_LITERAL_CSTRING("FEATURE_FAILURE_WEBGL_DISABLED");
|
||||
}
|
||||
const nsLiteralCString text("WebGL is currently disabled.");
|
||||
ThrowEvent_WebGLContextCreationError(text);
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче