From fe0d9a9d212f5bc884b334b20c91fc12f4f11a9e Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 27 Jun 2018 19:32:26 +0200 Subject: Fix "about:support"s "graphics" section when "webgl.disable-extensions" is true --- toolkit/modules/Troubleshoot.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toolkit/modules') 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; -- cgit v1.2.3