Mobile Design Strategy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mobile Design Strategy

matthewcantrell2671
# HG changeset patch
# User Victor Porof <[hidden email]>
# Date 1338643994 -10800
# Node ID 0120b4b5d13e089bfe25f08b12e52878f72258ab
# Parent  5199196b65ec6bafc1fe877729f336c4db7d9abd
Bug 754806 - Intermittent browser_tilt_03_tab_switch.js | uncaught JS exception reported through window.onerror - NS_ERROR_FAILURE | uncaught JS exception reported through window.onerror - Script error at resource:///modules/devtools/TiltVisualizer.jsm:0

diff --git a/browser/devtools/tilt/TiltGL.jsm b/browser/devtools/tilt/TiltGL.jsm
--- a/browser/devtools/tilt/TiltGL.jsm
+++ b/browser/devtools/tilt/TiltGL.jsm
@@ -1554,7 +1554,10 @@
     supported = gfxInfo.getFeatureStatus(angle) === gfxInfo.FEATURE_NO_INFO ||
                 gfxInfo.getFeatureStatus(opengl) === gfxInfo.FEATURE_NO_INFO;
   } catch(e) {
-    TiltUtils.Output.error(e.message);
+    if (e.message) {
+      TiltUtils.Output.error(e.message);
+    }
+    return false;
   } finally {
     return supported;
   }
@@ -1580,7 +1583,10 @@
   try {
     context = aCanvas.getContext(WEBGL_CONTEXT_NAME, aFlags);
   } catch(e) {
-    TiltUtils.Output.error(e.message);
+    if (e.message) {
+      TiltUtils.Output.error(e.message);
+    }
+    return null;
   } finally {
     return context;
   }
_______________________________________________
dev-planning mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-planning