Closed Bug 1872600 Opened 11 months ago Closed 6 months ago

Content script not injected until add-on popup menu is accessed

Categories

(Fenix :: WebExtensions, defect, P3)

Firefox 120
All
Android
defect

Tracking

(firefox122 affected, firefox123 affected)

RESOLVED FIXED
Tracking Status
firefox122 --- affected
firefox123 --- affected

People

(Reporter: proginosko, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [qa-triaged])

Steps to reproduce:

Install LeechBlock add-on on Firefox (or Firefox Beta) for Android. Set up LeechBlock options to block a website (e.g., facebook.com) after 5 minutes use in every hour. Go to website. No countdown timer appears on the page. Now open the LeechBlock popup menu (via the Add-ons menu). Go back to website. Countdown timer now appears as expected.

Actual results:

LeechBlock's content script is not injected into the webpage until the popup menu is accessed.

Expected results:

LeechBlock's content script should be injected when the webpage is initially loaded. This is what happens in Firefox for desktop and is the expected behavior. Many add-ons will not work as expected if the content script is not loaded right away.

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)

I was able to reproduce this issue on the latest builds: Nightly (123.0a1), Beta and RC (122).
The countdown timer is only displayed after opening and closing the LeechBlock add-on menu.
Device used: Samsung Galaxy S23 Ultra (Android 14).
Marking the ticket as NEW.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]
Severity: -- → S3

That's because this add-on uses MV3, which isn't well supported on Firefox for Android at the moment, see Bug 1812119.

Depends on: fenix-mv3

(In reply to William Durand [:willdurand] from comment #3)

That's because this add-on uses MV3, which isn't well supported on Firefox for Android at the moment, see Bug 1812119.

Yes, I know. I submitted the bug report in the hope that it would become better supported. :)

The dilemma for developers like me is that add-ons for desktop are being pushed towards supporting MV3, while add-ons for Android are being encouraged to hold back. But I don't want to have to develop two different add-ons, one for desktop and one for Android, especially when the one add-on worked fine on both platforms until the advent of MV3. Certainly it's not feasible for me to spin off a separate MV2 add-on for Android at this stage, given the established user base.

Flags: needinfo?(amejiamarmol)
Priority: -- → P3

What's the latest on this? I have LeechBlock users asking about this regularly.

Bug 1889402 should kinda fix this issue.

Hey :proginosko, could you please verify in latest Nightly?

Flags: needinfo?(proginosko)

(In reply to William Durand [:willdurand] from comment #7)

Hey :proginosko, could you please verify in latest Nightly?

Yes, it works in Nightly v128.0a1. Excellent news! Thank you.

Flags: needinfo?(proginosko)

Fixed by Bug 1889402.

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.