Bug 1388266 - Ignore error about non-existing _locale and localization directory. r=kmag, a=gchang
authorRob Wu <rob@robwu.nl>
Thu, 07 Sep 2017 17:55:28 +0200
changeset 424024 6e0e2f09610e3f8c541f6e21f140c637539bec3e
parent 424023 7e38724bec08788526762000fbc6cecf76b3fb10
child 424025 8dcbff75d8f1a9186ad3575421f5cd36959ddc43
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag, gchang
bugs1388266
milestone56.0
Bug 1388266 - Ignore error about non-existing _locale and localization directory. r=kmag, a=gchang MozReview-Commit-ID: 8wEBUG7bjJD
toolkit/components/extensions/Extension.jsm
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -405,17 +405,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;