Bug#909056: SyntaxError: addonsInfo.js:91:66

2018-09-24 Thread Sven Joachim
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


Bug#909056: SyntaxError: addonsInfo.js:91:66

2018-09-17 Thread Feoktistov Sergey
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.

This error in every start Firefox-esr.

Also after start reportdebug in browser console appear warning:

Warning: unrecognized command line flag -dump-addons-info
  nsBrowserContentHandler.js:776



-- Package-specific info:


-- Addons package information

-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-7-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), 
LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages firefox-esr depends on:
ii  debianutils   4.8.1.1
ii  fontconfig2.11.0-6.7+b1
ii  libatk1.0-0   2.22.0-1
ii  libc6 2.24-11+deb9u3
ii  libcairo-gobject2 1.14.8-1
ii  libcairo2 1.14.8-1
ii  libdbus-1-3   1.10.26-0+deb9u1
ii  libdbus-glib-1-2  0.108-2
ii  libevent-2.0-52.0.21-stable-3
ii  libffi6   3.2.1-6
ii  libfontconfig12.11.0-6.7+b1
ii  libfreetype6  2.6.3-3.2
ii  libgcc1   1:6.3.0-18+deb9u1
ii  libgdk-pixbuf2.0-02.36.5-2+deb9u2
ii  libglib2.0-0  2.50.3-2
ii  libgtk-3-03.22.11-1
ii  libjsoncpp1   1.7.4-3
ii  libpango-1.0-01.40.5-1
ii  libstartup-notification0  0.12-4+b2
ii  libstdc++66.3.0-18+deb9u1
ii  libvpx4   1.6.1-3+deb9u1
ii  libx11-6  2:1.6.4-3
ii  libx11-xcb1   2:1.6.4-3
ii  libxcb-shm0   1.12-1
ii  libxcb1   1.12-1
ii  libxcomposite11:0.4.4-2
ii  libxdamage1   1:1.1.4-2+b3
ii  libxext6  2:1.3.3-1+b2
ii  libxfixes31:5.0.3-1
ii  libxrender1   1:0.9.10-1
ii  libxt61:1.1.5-1
ii  procps2:3.3.12-3+deb9u1
ii  zlib1g1:1.2.8.dfsg-5

Versions of packages firefox-esr recommends:
ii  libavcodec57  7:3.2.12-1~deb9u1

Versions of packages firefox-esr suggests:
pn  fonts-lmodern  
pn  fonts-stix | otf-stix  
ii  libcanberra0   0.30-3
ii  libgssapi-krb5-2   1.15-1+deb9u1
ii  libgtk2.0-02.24.31-2

-- no debconf information