Open Bug 1963046 Opened 2 months ago Updated 1 month ago

Allow to create a new geckoview tab in a specific user context

Categories

(GeckoView :: General, task, P1)

All
Android
task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Assigned: m_kato)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(3 files)

To support WebDriverBiDi's browsingContext.create command, we need an API to open a tab/window in an existing user context for Firefox for Android.

This is blocking Bug 1877953 on BiDi side (there is already some conversation about which APIs BiDi is using at the moment there).

Makoto, you seemed to have some ideas on how we could fix this in https://bugzilla.mozilla.org/show_bug.cgi?id=1877953#c4, can you share more details on how to fix this?

Flags: needinfo?(m_kato)

Does it depends on usercontextid in browser element?

When opening new window (nsIWindowWatcher.openWindow might be called) by script, I guess that GeckoView doesn't set "usercontextid" in browser element. Also, WebDriver might use internal mthod (in GeckoViewTabUtils) to open new window, but I guess that we don't set it too.

Flags: needinfo?(m_kato)

And GeckoViewTabUtil.userContextId will return same value from GeckoView Java API.

Would resolving bug1641420 help alleviate this?

Severity: -- → N/A
Flags: needinfo?(m_kato)

(In reply to Cathy Lu [:calu] from comment #3)

Would resolving bug1641420 help alleviate this?

No.

When I investigate WebDriver's userContextId handling, it have to be stored in browsing context. I will add concept WIP for this issue. (I only test for testing/web-platform/tests/webdriver/tests/bidi/browsing_context/create, it seems to works.)

Flags: needinfo?(m_kato)
Assignee: nobody → m_kato
Priority: -- → P1
Attachment #9484979 - Attachment description: WIP: Bug 1963046 - Attach usercontextid when creating window. r=#geckoview-reviewers → Bug 1963046 - Part 1. Attach usercontextid when creating window. r=#geckoview-reviewers!,#webdriver-reviewers!

Although webdriver/tests/bidi/browser/remove_user_context/user_context.py.ini
isn't still passed, we should run more tests that is successful.

Attachment #9485324 - Attachment description: Bug 1963046 - Part 2. Implemnet hasAttribute and getAttritue to access usercontextid in tab. r=#geckoview-reviewers!,#webdriver-reviewers! → Bug 1963046 - Part 2. Don't use hasAttribute and getAttritue to access usercontextid in tab. r=#geckoview-reviewers!,#webdriver-reviewers!
Depends on: 1966037
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: