Bug 1388266 - Ignore error about non-existing _locale and localization directory
MozReview-Commit-ID: 8wEBUG7bjJD
--- 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;