summaryrefslogtreecommitdiff
path: root/toolkit/modules
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 /toolkit/modules
parent23d70a95d85e001a29945642ddf7cca6b32f15a3 (diff)
downloaduxp-fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e.tar.gz
Fix "about:support"s "graphics" section when "webgl.disable-extensions" is true
Diffstat (limited to 'toolkit/modules')
-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 4c6ac558df..a862b1db46 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;