[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-52.1.0esr-7.0-2] Bug 21972: about:support is partially broken



commit 4fef8cc56573a8513479bfb821406e7e8dfffcc5
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
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;
     }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits