Backed out changeset ca17ce6a2c9a (bug 1303301) for gl3 test failures
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Thu, 29 Sep 2016 09:34:49 +0200
changeset 315637 cb3ef16e764888c5b470e423b6af38572f0d2d6f
parent 315636 5f5f861ab495278246dcd738d893c981faf3ea90
child 315638 b6f0cf0441ddd6b527ca8fae504c4af055ea7040
child 315731 f7d5008ee2ab9200052e45ad6ecc3f3a348f7f86
push id82243
push usercbook@mozilla.com
push dateThu, 29 Sep 2016 07:34:58 +0000
treeherdermozilla-inbound@cb3ef16e7648 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1303301
milestone52.0a1
backs outca17ce6a2c9a3e906c9527c1e44c98185325cabe
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset ca17ce6a2c9a (bug 1303301) for gl3 test failures
dom/canvas/WebGLContext.cpp
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -823,21 +823,18 @@ WebGLContext::ResizeBackbuffer(uint32_t 
     }
     return true;
 }
 
 void
 WebGLContext::ThrowEvent_WebGLContextCreationError(const nsACString& text)
 {
     RefPtr<EventTarget> target = mCanvasElement;
-    if (!target && mOffscreenCanvas) {
+    if (!target) {
         target = mOffscreenCanvas;
-    } else {
-        GenerateWarning("Failed to create WebGL context: %s", text.BeginReading());
-        return;
     }
 
     const auto kEventName = NS_LITERAL_STRING("webglcontextcreationerror");
 
     WebGLContextEventInit eventInit;
     // eventInit.mCancelable = true; // The spec says this, but it's silly.
     eventInit.mStatusMessage = NS_ConvertASCIItoUTF16(text);