Open Bug 1841438 Opened 11 months ago Updated 7 months ago

Updated MV3 addon fails - permissions problem?

Categories

(Fenix :: WebExtensions, defect, P3)

Firefox 116
All
Android

Tracking

(Not tracked)

People

(Reporter: dave, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Version 1.0.4 of my MV3 addon worked on Desktop and Android.
https://addons.mozilla.org/en-GB/firefox/addon/abcjs-player-mod/
I'm using Fx Nightly on Android 116.a1 updated today. The addon is in my collection.
The addon adds buttons (Clear, Chords...) under the player controls on this site so it's easy to see whether it installs*:
https://editor.drawthedots.com/

I updated it to 1.0.5. One significant change was to add another target site in the manifest - see addon description. It works on Linux Desktop (Nightly 116a) on both target sites.

It updated automatically on Android. It no longer works on Android on either target site.

If I remove and reinstall it (from the collection) it asks for permission to access the two sites, and the permissions tab in the addons manager suggests that it has those permissions (though there's no checkmark or on/off control). Remote debugging from Desktop confirms that the addon does not install itself into either target site: "Your addon does not have any document opened yet."

To me it looks like permissions have not being granted. And the permission that v1.0.4 had to access drawthedots.com has been removed. Or maybe the permissions tab in the addons manager is incomplete and it should have a control for me to grant permissions, like on desktop. (I'm using a 10" tablet.)

*To see the buttons on the michaeleskin site press 'New ABC' then 'Play' and scroll to the bottom to see the player controls, and the buttons.

(Please ignore the last line with the *: the addons buttons are immediately visible on both target sites.)

I installed the addon using web-ext to see if I could see any errors. It installed OK but didn't work and remote debugging showed no change.

Logcat messages look OK:
adb logcat | grep abcjs_play_extras@davero.addons.mozilla.org
07-05 15:13:54.533 9062 9062 I DefaultAddonUpdater: unregisterForFutureUpdates abcjs_play_extras@davero.addons.mozilla.org
(I removed the installed version. The rest is using web-ext)
07-05 15:36:42.579 16793 16793 I DefaultAddonUpdater: registerForFutureUpdates abcjs_play_extras@davero.addons.mozilla.org
07-05 15:36:42.687 16793 16793 I AddonUpdaterWorker: Trying to update extension abcjs_play_extras@davero.addons.mozilla.org
07-05 15:36:42.969 16793 16793 I AddonUpdaterWorker: There is no new updates for the abcjs_play_extras@davero.addons.mozilla.org
07-05 15:36:42.974 16793 16891 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=028f61c7-698d-4f40-9b02-a654814d2985, tags={ mozilla.components.feature.addons.update.addonUpdater.periodicWork, mozilla.components.feature.addons.update.AddonUpdaterWorker, mozilla.components.feature.addons.update.abcjs_play_extras@davero.addons.mozilla.org.periodicWork } ]

I used web-ext to install v1.0.4 - which worked before. I doesn't work now.
And in the addons manager it says it's 1.0.5 so it may have immediately updated to 1.0.5, though there's nothing on logcat. Or that info was left from the earlier installation.

I modified v1.0.4 - changed the ID - and installed it using web-ext.
I doesn't work, and the in the addons manager it has no permissions set.
But I was not asked to grant permissions on installation like the AMO version does - a feature of web-ext?

It all confirms my view that it's a permissions problem - when it was originally updated, or when I install using web-ext.

The severity field is not set for this bug.
:amejia, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(amejiamarmol)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Flags: needinfo?(amejiamarmol)
Priority: -- → P3

I updated to nightly 118a, removed the addon, closed & reopened Fx, and reinstalled it. It asked for permission to access the two named sites.
Neither site works with the addon nor is there a site-specific way of granting (or withdrawing) permission like on desktop.

I need this addon on Android so I cloned it as MV2.
MV3 version - doesn't work on Fx for Android 118a (addon now v1.0.7):
https://addons.mozilla.org/en-GB/firefox/addon/abcjs-player-mod/
MV2 version - specified as for Android only (addon v1.0.8 - same as 1.0.7):
https://addons.mozilla.org/en-GB/firefox/addon/abcjs-player-mod-mv2/

I'm trying to run my extension Cookie-Editor on firefox for android and since switching to Manifest v3, I can't request permission on android. There are no errors and I see the request for permission does not fail in the code but nothing happens in the interface. There is no prompt to accept the host permission.

I think thuis is fixed in 120
See bug 1810047

No, it's not fixed by bug 1810047
Behaviour in Fx 120 is the same:

  • no request for permissions when addon installed
  • nothing in the addon's permissions tab
You need to log in before you can comment on or make changes to this bug.