Closed Bug 1611697 Opened 5 years ago Closed 5 years ago

extension.getViews does not return views in containers

Categories

(WebExtensions :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

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 WebExtensions about:debugging inspect console

Tested with Nightly 74.0a1 (2020-01-26) (64-bit)

Summary: extension.getViews does not return views in usercontext → extension.getViews does not return views in containers

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.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX

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.

You need to log in before you can comment on or make changes to this bug.