summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-28 15:00:52 +0200
committerGitHub <noreply@github.com>2018-06-28 15:00:52 +0200
commitda4fa3b52fea6258f56ed73d9132fcf04ce81fba (patch)
tree31db36d454ab1b6c3fd3a156417f8008dfb052f6 /toolkit
parent3dea115f2a0c6ba3674dfda5e701b2f31117e11c (diff)
parentfe0d9a9d212f5bc884b334b20c91fc12f4f11a9e (diff)
downloadUXP-da4fa3b52fea6258f56ed73d9132fcf04ce81fba.tar
UXP-da4fa3b52fea6258f56ed73d9132fcf04ce81fba.tar.gz
UXP-da4fa3b52fea6258f56ed73d9132fcf04ce81fba.tar.lz
UXP-da4fa3b52fea6258f56ed73d9132fcf04ce81fba.tar.xz
UXP-da4fa3b52fea6258f56ed73d9132fcf04ce81fba.zip
Merge pull request #557 from janekptacijarabaci/toolkit_about-support_error_1
Fix "about:support"s "graphics" section when "webgl.disable-extensions" is true
Diffstat (limited to 'toolkit')
-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;