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 379655 81a4056d20310ffdb086d6e65c8eaff11aa0e6fa
parent 379654 d4ec10bfab85ccc2bbfd1e7c4424a43dcef97410
child 379702 2af9cfda0d5c1a8821d1640d8185ae0985383fd3
push id50745
push userrob@robwu.nl
push dateFri, 08 Sep 2017 08:58:09 +0000
treeherderautoland@81a4056d2031 [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;