WebExtension fails to install only on ubuntu packaged firefox

Bug #1628014 reported by Marius J.
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hi,

I have recently developed a WebExtension ( https://addons.mozilla.org/en-US/firefox/addon/surligneur/ ) but the installation from AMO freezes on a **ubuntu packaged firefox**. The download starts but the process freezes on the "Downloading and verifying addon" step (even on a clean profile and/or a clean install). In the browser console I get the following error :

A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise

Date: Tue Sep 27 2016 11:05:24 GMT+0200 (CEST)
Full Message: TypeError: is not iterable
Full Stack: AddonInstall.prototype.onStopRequest/<@resource://gre/modules/addons/XPIProvider.jsm:5974:1
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:940:21
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:750:11

Please note that :
- I'm using firefox 49 on ubuntu 16.04.1
- Installing the same extension on a Windows system or a Ubuntu system with a firefox directly downloaded from https://www.mozilla.org/en-US/firefox/all/#en-US works correctly.
- Load the addon through the about:debugging page works correctly too.

Best,

Marius

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: firefox 49.0+build4-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: marius 2137 F.... pulseaudio
 /dev/snd/controlC1: marius 2137 F.... pulseaudio
BuildID: 20160920074044
Channel: Unavailable
CurrentDesktop: Unity
Date: Tue Sep 27 11:55:56 2016
DefaultProfileExtensions: extensions.sqlite corrupt or missing
DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
DefaultProfileLocales: extensions.sqlite corrupt or missing
DefaultProfilePlugins:
 Gnome Shell Integration - /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
 Shockwave Flash - /usr/lib/flashplugin-installer/libflashplayer.so
DefaultProfilePrefSources: prefs.js
DefaultProfileThemes: extensions.sqlite corrupt or missing
EcryptfsInUse: Yes
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2016-03-30 (180 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323)
IpRoute:
 default via 192.168.1.1 dev wlp4s0 proto static metric 600
 169.254.0.0/16 dev wlp4s0 scope link metric 1000
 192.168.1.0/24 dev wlp4s0 proto kernel scope link src 192.168.1.6 metric 600
MostRecentCrashID: bp-63a6343e-7c06-4bcb-8343-af7572160218
Profile1Extensions: extensions.sqlite corrupt or missing
Profile1IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
Profile1Locales: extensions.sqlite corrupt or missing
Profile1Plugins:
 Gnome Shell Integration - /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
 Shockwave Flash - /usr/lib/flashplugin-installer/libflashplayer.so
Profile1PrefSources: prefs.js
Profile1Themes: extensions.sqlite corrupt or missing
Profiles:
 Profile0 (Default) - LastVersion=49.0/20160920074044 (In use)
 Profile1 - LastVersion=49.0/20160920074044
RelatedPackageVersions: gnome-shell 3.18.5-0ubuntu0.1
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/29/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A14
dmi.board.name: 0Y536R
dmi.board.vendor: Dell Inc.
dmi.board.version: A14
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A14
dmi.modalias: dmi:bvnDellInc.:bvrA14:bd03/29/2010:svnDellInc.:pnStudioXPS1640:pvrA143:rvnDellInc.:rn0Y536R:rvrA14:cvnDellInc.:ct8:cvrA14:
dmi.product.name: Studio XPS 1640
dmi.product.version: A143
dmi.sys.vendor: Dell Inc.

Revision history for this message
Marius J. (turkal) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
Nate Wiebe (natew) wrote :

I get the same issue with an unlisted WebExtension. Works fine on Windows, or downloading Firefox from their site. It's only affecting Firefox installed from the repos.

Changed in firefox (Ubuntu):
importance: Undecided → Medium
Revision history for this message
paulgreg (paul-gregory) wrote :

Same bug when trying to install my 2 extensions in Firefox 49 on Ubuntu 16.04.1 :
- https://addons.mozilla.org/en-US/firefox/addon/rsstodolist/
- https://addons.mozilla.org/en-US/firefox/addon/uniquepasswordbuilder-addon/

Loading extension from debug page works.
Installing extensions on Firefox Developer Edition (https://www.mozilla.org/fr/firefox/developer/) works.

Here the console trace when trying to install one of those extension :

************************
A coding exception was thrown in a Promise rejection callback.
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise

Full message: TypeError: is not iterable
Full stack: AddonInstall.prototype.onStopRequest/<@resource://gre/modules/addons/XPIProvider.jsm:5974:1
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:940:21
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:750:11

*************************
1476609586196 addons.xpi-utils WARN Error: XPI database modified after shutdown began (resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:458:17) JS Stack trace: <email address hidden>:458:17 < <email address hidden>:1441:9 < <email address hidden>:2854:7 < _startProvider/AMProviderShutdown/<@AddonManager.jsm:802:21 < <email address hidden>:388:5 < <email address hidden>:800:16 < Barrier/this.client.addBlocker/promise</<email address hidden>:720:23 < Barrier.prototype<.<email address hidden>:867:7 < Barrier.prototype<.<email address hidden>:851:28 < AddonManagerInternal.shutdownManager<@AddonManager.jsm:1199:15

Revision history for this message
Mats Sjöberg (mvsjober) wrote :

I see exactly the same problem when trying to install an extension developed in our research project (http://www.hiit.fi/g/reknow/software/dime_webextension-0.42-an+fx.xpi). It works fine with the mozilla.org version of Firefox (I tested both 49.0 and 49.0.2).

Revision history for this message
Pim van den Berg (pommib) wrote :

I've been hitting exactly the same problem on Debian 8 running Firefox 49.0-5~bpo80+1 from https://mozilla.debian.net/. The issue seems to be solved in Firefox 50.0~b11-1~bpo80+1.

Revision history for this message
Paul White (paulw2u) wrote :

Further to comment #6 and upstream bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1315501
issue resolved with Firefox 50, released on 2016-11-15
after which reports of problems ceased.

Changed in firefox (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.