Bug 1579374 - Show information when mediacapabilities folder doesn't exist in the profile yet. r=chunmin
authorAlex Chronopoulos <achronop@gmail.com>
Wed, 11 Sep 2019 22:40:48 +0000
changeset 492754 cda07e85ce9d003414bea67e3d16fc55189d9471
parent 492753 b4a2b9704d6165c67717283ce944936b3ed74ab7
child 492755 a0c55670272a9f35491505f551051c056e74dd25
push id36566
push userncsoregi@mozilla.com
push dateThu, 12 Sep 2019 15:24:49 +0000
treeherdermozilla-central@6aec99b90f85 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschunmin
bugs1579374
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1579374 - Show information when mediacapabilities folder doesn't exist in the profile yet. r=chunmin When the mediacapabilities folder does not exist catch the exception and print the name of the decoder. Differential Revision: https://phabricator.services.mozilla.com/D45352
toolkit/content/aboutSupport.js
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -884,16 +884,19 @@ var snapshotFormatters = {
                 var logs = [];
                 logs.push(`${name}:`);
                 while (enumerator.hasMoreElements()) {
                   const { key, value } = enumerator.getNext();
                   logs.push(`${key}: ${value}`);
                 }
                 $("enumerate-database-result").textContent +=
                   logs.join("\n") + "\n";
+              })
+              .catch(err => {
+                $("enumerate-database-result").textContent += `${name}:\n`;
               });
           }
 
           $("enumerate-database-result").style.display = "block";
           $("enumerate-database-result").classList.remove("no-copy");
           $("enumerate-database-result").textContent = "";
 
           enumerateDatabase("video/av1");