Open Bug 1990932 Opened 1 month ago Updated 10 days ago

Extensions in custom tabs are tied to normal tab

Categories

(Firefox for Android :: WebExtensions, defect, P3)

All
Android
defect

Tracking

()

People

(Reporter: RJ, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce

  1. Apply patch
  2. Install uBlock Origin addon (also works for other addons like Privacy Badger)
  3. Go to amazon.com (can be any site)
  4. Open settings -> Expand "Extensions" -> Click uBlock item -> verify the URL is "www.amazon.com"
  5. Go to a custom tab and repeat STEP 4

Expected behavior

The URL displayed in uBlock for the custom tab should be the current site.

Actual behavior

The URL displayed in the custom tab is still "www.amazon.com"

Any additional information?

The extensions still work in the custom tabs but they do not have the appropriate info.

Severity: -- → S3
Priority: -- → P3

I haven't looked at this in a while but I believe the problem was the extensionState for custom tab sessions are never updated.

Hi RJ, thank you so much for digging into this gap, I though to collect and share in this bug some additional pointers related to how the tabs states are being propagated to the WebExtensions internals from Fenix/GeckoView as it may be useful to get a picture of how the tab details are flowing through the various abstraction layers involved:

NOTE: we don't currently have the concept of a Window (as a collection of tabs), nor a windows WebExtensions API, and so at the moment a WebExtensions perspective each GeckoView tab lives in its own "window"

Blocks: 1998554
No longer blocks: 1986697
See Also: → 1959344
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: