[tbb-commits] [tor-browser/tor-browser-52.1.1esr-7.0-1] Bug 21972: about:support is partially broken

gk at torproject.org gk at torproject.org
Tue May 30 07:35:43 UTC 2017


commit 8bd3ef487932654d78bfab848b65fb04b0094e3b
Author: Georg Koppen <gk at torproject.org>
Date:   Mon May 29 13:31:07 2017 +0000

    Bug 21972: about:support is partially broken
---
 toolkit/modules/Troubleshoot.jsm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/toolkit/modules/Troubleshoot.jsm b/toolkit/modules/Troubleshoot.jsm
index cc545b4..364d5e1 100644
--- a/toolkit/modules/Troubleshoot.jsm
+++ b/toolkit/modules/Troubleshoot.jsm
@@ -469,8 +469,11 @@ var dataProviders = {
 
         // Eagerly free resources.
         let loseExt = gl.getExtension("WEBGL_lose_context");
-        loseExt.loseContext();
-
+        // This extension is not necessarily available. Check for it. Fixes bug
+        // 21972.
+        if (loseExt) {
+          loseExt.loseContext();
+        }
 
         return contextInfo;
     }



More information about the tbb-commits mailing list