From:  matthewcantrell2671@gmail.com
Date:  12 Dec 2016 06:50:19 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.planning
Subject:  

Mobile Design Strategy

NNTP-Posting-Host:  2607:fb90:463e:18a2:0:41:a5a5:8401

# HG changeset patch
# User Victor Porof 
# 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;
   }