On 2018-09-18 02:24 +0500, Feoktistov Sergey wrote:
> Package: firefox-esr
> Version: 60.2.0esr-1~deb9u2
> Severity: minor
>
> Dear Maintainer,
>
> Start Firefox-esr, open browser console (Ctrl+Shift+J), view error:
>
> SyntaxError: "0"-prefixed octal literals and octal escape sequences are
> deprecated; for octal literals use the "0o" prefix instead[Learn More]
> addonsInfo.js:91:66
> Contract ID '@mozilla.org/toolkit/addonsInfo-clh;1' was registered as a
> command
> line handler for entry 'a-addons-info', but could not be created.
Both errors are coming from debian/extra-stuff/addonsInfo.js. The first
one seems to be trivially fixable, I am not familiar enough with Firefox
to say anything about the second.
diff --git a/debian/extra-stuff/addonsInfo.js b/debian/extra-stuff/addonsInfo.js
index 42d76b8..481594e 100644
--- a/debian/extra-stuff/addonsInfo.js
+++ b/debian/extra-stuff/addonsInfo.js
@@ -88,7 +88,7 @@ addonsInfoHandler.prototype = {
file.initWithPath(path);
var outstream = Cc["@mozilla.org/network/file-output-stream;1"]
.createInstance(Ci.nsIFileOutputStream);
- outstream.init(file, 0x2A /* TRUNCATE | WRONLY | CREATE */, 0666, 0);
+ outstream.init(file, 0x2A /* TRUNCATE | WRONLY | CREATE */, 0o666, 0);
out = Cc["@mozilla.org/intl/converter-output-stream;1"]
.createInstance(Ci.nsIConverterOutputStream);
out.init(outstream, "UTF-8", 0, 0);
Cheers,
Sven