diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-06-27 10:25:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 10:25:15 +0200 |
commit | a3724697dc38820c4918b9e674ff56d2c15c5bba (patch) | |
tree | 920b62ff4f530363ce246069ad4f788928dc2d9c /toolkit/modules/Troubleshoot.jsm | |
parent | 2d8e325fbdaeaa26b1f2a99ddbbb67804ef97864 (diff) | |
parent | a05046a4d26d9b743b7f2333e9584a147623ca2b (diff) | |
download | UXP-a3724697dc38820c4918b9e674ff56d2c15c5bba.tar UXP-a3724697dc38820c4918b9e674ff56d2c15c5bba.tar.gz UXP-a3724697dc38820c4918b9e674ff56d2c15c5bba.tar.lz UXP-a3724697dc38820c4918b9e674ff56d2c15c5bba.tar.xz UXP-a3724697dc38820c4918b9e674ff56d2c15c5bba.zip |
Merge pull request #551 from janekptacijarabaci/toolkit_restart_normally_2
"about:support" - added support for "Restart normally"
Diffstat (limited to 'toolkit/modules/Troubleshoot.jsm')
-rw-r--r-- | toolkit/modules/Troubleshoot.jsm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/toolkit/modules/Troubleshoot.jsm b/toolkit/modules/Troubleshoot.jsm index 20aad6770..4c6ac558d 100644 --- a/toolkit/modules/Troubleshoot.jsm +++ b/toolkit/modules/Troubleshoot.jsm @@ -347,11 +347,14 @@ var dataProviders = { QueryInterface(Ci.nsIInterfaceRequestor). getInterface(Ci.nsIDOMWindowUtils) data.supportsHardwareH264 = "Unknown"; - let promise = winUtils.supportsHardwareH264Decoding; - promise.then(function(v) { - data.supportsHardwareH264 = v; - }); - promises.push(promise); + try { + // After restart - data may not be available + let promise = winUtils.supportsHardwareH264Decoding; + promise.then(function(v) { + data.supportsHardwareH264 = v; + }); + promises.push(promise); + } catch (e) {} data.currentAudioBackend = winUtils.currentAudioBackend; |