Bug 1388266 - Ignore error about non-existing _locale and localization directory r=kmag
authorRob Wu <rob@robwu.nl>
Thu, 07 Sep 2017 17:55:28 +0200
changeset 379686 81a4056d20310ffdb086d6e65c8eaff11aa0e6fa
parent 379685 d4ec10bfab85ccc2bbfd1e7c4424a43dcef97410
child 379687 2af9cfda0d5c1a8821d1640d8185ae0985383fd3
push id32461
push userkwierso@gmail.com
push dateFri, 08 Sep 2017 20:15:32 +0000
treeherdermozilla-central@dd3736e98e4e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1388266
milestone57.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 1388266 - Ignore error about non-existing _locale and localization directory r=kmag MozReview-Commit-ID: 8wEBUG7bjJD
toolkit/components/extensions/Extension.jsm
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -389,17 +389,19 @@ this.ExtensionData = class {
 
       try {
         await iter.forEach(entry => {
           results.push(entry);
         });
       } catch (e) {
         // Always return a list, even if the directory does not exist (or is
         // not a directory) for symmetry with the ZipReader behavior.
-        Cu.reportError(e);
+        if (!e.becauseNoSuchFile) {
+          Cu.reportError(e);
+        }
       }
       iter.close();
 
       return results;
     }
 
     let uri = this.rootURI.QueryInterface(Ci.nsIJARURI);
     let file = uri.JARFile.QueryInterface(Ci.nsIFileURL).file;