summaryrefslogtreecommitdiff
path: root/toolkit/modules
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-08-01 09:34:24 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-08-01 09:34:24 +0200
commitd84ee90be10b67358a2a2340041337aec0cf04d8 (patch)
tree5358fd8d5d4e8f0b1bf1dd43ec7cdcb29e95427a /toolkit/modules
parente7f7100ba6759f30295dbc49f819ebb9c4785298 (diff)
downloaduxp-d84ee90be10b67358a2a2340041337aec0cf04d8.tar.gz
Bug 1341957 - Add webgl.getSupportedExtensions() to about:support
Diffstat (limited to 'toolkit/modules')
-rw-r--r--toolkit/modules/Troubleshoot.jsm4
-rw-r--r--toolkit/modules/tests/browser/browser_Troubleshoot.js6
2 files changed, 9 insertions, 1 deletions
diff --git a/toolkit/modules/Troubleshoot.jsm b/toolkit/modules/Troubleshoot.jsm
index 65342b6239..8d84eec8c3 100644
--- a/toolkit/modules/Troubleshoot.jsm
+++ b/toolkit/modules/Troubleshoot.jsm
@@ -422,6 +422,7 @@ var dataProviders = {
function GetWebGLInfo(data, keyPrefix, contextType) {
data[keyPrefix + "Renderer"] = "-";
data[keyPrefix + "Version"] = "-";
+ data[keyPrefix + "DriverExtensions"] = "-";
data[keyPrefix + "Extensions"] = "-";
data[keyPrefix + "WSIInfo"] = "-";
@@ -456,6 +457,7 @@ var dataProviders = {
return;
}
+ data[keyPrefix + "Extensions"] = gl.getSupportedExtensions().join(" ");
let ext = gl.getExtension("MOZ_debug_get");
// This extension is unconditionally available to chrome. No need to check.
@@ -464,7 +466,7 @@ var dataProviders = {
data[keyPrefix + "Renderer"] = vendor + " -- " + renderer;
data[keyPrefix + "Version"] = ext.getParameter(gl.VERSION);
- data[keyPrefix + "Extensions"] = ext.getParameter(ext.EXTENSIONS);
+ data[keyPrefix + "DriverExtensions"] = ext.getParameter(ext.EXTENSIONS);
data[keyPrefix + "WSIInfo"] = ext.getParameter(ext.WSI_INFO);
diff --git a/toolkit/modules/tests/browser/browser_Troubleshoot.js b/toolkit/modules/tests/browser/browser_Troubleshoot.js
index e449e99a33..4124be1fb3 100644
--- a/toolkit/modules/tests/browser/browser_Troubleshoot.js
+++ b/toolkit/modules/tests/browser/browser_Troubleshoot.js
@@ -304,6 +304,9 @@ const SNAPSHOT_SCHEMA = {
webgl1Version: {
type: "string",
},
+ webgl1DriverExtensions: {
+ type: "string",
+ },
webgl1Extensions: {
type: "string",
},
@@ -316,6 +319,9 @@ const SNAPSHOT_SCHEMA = {
webgl2Version: {
type: "string",
},
+ webgl2DriverExtensions: {
+ type: "string",
+ },
webgl2Extensions: {
type: "string",
},