summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-27 19:32:26 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-27 19:32:26 +0200
commitfe0d9a9d212f5bc884b334b20c91fc12f4f11a9e (patch)
treeaab12b62c9f4c1889f469c6b4a967d83b951c3be
parent23d70a95d85e001a29945642ddf7cca6b32f15a3 (diff)
downloadUXP-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.tar
UXP-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.tar.gz
UXP-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.tar.lz
UXP-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.tar.xz
UXP-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.zip
Fix "about:support"s "graphics" section when "webgl.disable-extensions" is true
-rw-r--r--toolkit/modules/Troubleshoot.jsm4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolkit/modules/Troubleshoot.jsm b/toolkit/modules/Troubleshoot.jsm
index 4c6ac558d..a862b1db4 100644
--- a/toolkit/modules/Troubleshoot.jsm
+++ b/toolkit/modules/Troubleshoot.jsm
@@ -460,7 +460,9 @@ var dataProviders = {
// Eagerly free resources.
let loseExt = gl.getExtension("WEBGL_lose_context");
- loseExt.loseContext();
+ if (loseExt) {
+ loseExt.loseContext();
+ }
return contextInfo;