Backed out changeset 87bf65872b56 (bug 1341959) for xpcshell failures
authorIris Hsiao <ihsiao@mozilla.com>
Thu, 02 Mar 2017 11:53:44 +0800
changeset 374530 f24d5588057b82d6d2fc533fd2bcfdf78dc1623c
parent 374529 6fb5321bf52cd852ea49a6efb3c30c21205c03ef
child 374531 f76695801b2a0bd36eb4263e2e797d3062889afe
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1341959
milestone54.0a1
backs out87bf65872b562834b3b13eea0074c249cc355503
Backed out changeset 87bf65872b56 (bug 1341959) for xpcshell failures
dom/canvas/WebGLContext.cpp
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -705,32 +705,16 @@ WebGLContext::CreateAndInitGLWith(FnCrea
 
     return true;
 }
 
 bool
 WebGLContext::CreateAndInitGL(bool forceEnabled,
                               std::vector<FailureReason>* const out_failReasons)
 {
-    // WebGL2 is separately blocked:
-    if (IsWebGL2()) {
-        const nsCOMPtr<nsIGfxInfo> gfxInfo = services::GetGfxInfo();
-        const auto feature = nsIGfxInfo::FEATURE_WEBGL2;
-
-        FailureReason reason;
-        if (IsFeatureInBlacklist(gfxInfo, feature, &reason.key)) {
-            reason.info = "Refused to create WebGL2 context because of blacklist"
-                          " entry: ";
-            reason.info.Append(reason.key);
-            out_failReasons->push_back(reason);
-            GenerateWarning("%s", reason.info.BeginReading());
-            return false;
-        }
-    }
-
     const gl::SurfaceCaps baseCaps = BaseCaps(mOptions, this);
     gl::CreateContextFlags flags = gl::CreateContextFlags::NO_VALIDATION;
     bool tryNativeGL = true;
     bool tryANGLE = false;
 
     if (forceEnabled) {
         flags |= gl::CreateContextFlags::FORCE_ENABLE_HARDWARE;
     }