extension.getViews does not return views in containers
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
People
(Reporter: mozilla+bugzilla, Unassigned)
References
Details
Actual behavior
Calling extension.getViews
does not return views that are in containers despite contextualIdentities
permission
Expected behavior
Calling extension.getViews
should return views that are in containers when contextualIdentities
permission was given
Steps to reproduce
- WebExtension with
contextualIdentities
permission - Open tab in container
- Call
browser.extensions.getViews()
from WebExtensionsabout:debugging
inspect console
Tested with Nightly 74.0a1 (2020-01-26) (64-bit)
Comment 1•5 years ago
|
||
Correct. It is a platform invariant that windows with different user context IDs are not allowed to directly access each other, so it isn't possible to retien them from getViews.
Shouldn't the contextualIdentities permission that allows to manage user contexts also allow accessing views in different contexts? Or is it a hard platform limitation?
Because otherwise it simply isn't possible to getVIews() from the background for views that aren't in the default container, since it's afaik not possible to spawn background inside of a container.
Description
•