Bug 795701 - Followup, use 1x1 canvas when fetching WebGL info. r=Unfocused
authorBenoit Jacob <bjacob@mozilla.com>
Thu, 25 Oct 2012 12:07:00 +1300
changeset 111636 6169f0ad125b981662f9572c0e08e597ededaf8d
parent 111487 55658b5ed234a850c6cfed297fe8f79b4cd23776
child 111637 3e9ca49bd35f7e1101a4ee2f9ce04d98ff341a86
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersUnfocused
bugs795701
milestone19.0a1
Bug 795701 - Followup, use 1x1 canvas when fetching WebGL info. r=Unfocused
toolkit/content/Troubleshoot.jsm
--- a/toolkit/content/Troubleshoot.jsm
+++ b/toolkit/content/Troubleshoot.jsm
@@ -290,16 +290,18 @@ let dataProviders = {
         statusMsgForFeature(Ci.nsIGfxInfo.FEATURE_DIRECT2D);
 
     let doc =
       Cc["@mozilla.org/xmlextras/domparser;1"]
       .createInstance(Ci.nsIDOMParser)
       .parseFromString("<html/>", "text/html");
 
     let canvas = doc.createElement("canvas");
+    canvas.width = 1;
+    canvas.height = 1;
 
     let gl;
     try {
       gl = canvas.getContext("experimental-webgl");
     } catch(e) {}
 
     if (gl) {
       let ext = gl.getExtension("WEBGL_debug_renderer_info");