Allow to create a new geckoview tab in a specific user context
Categories
(GeckoView :: General, task, P1)
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?
Assignee | ||
Comment 1•2 months ago
|
||
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.
Assignee | ||
Comment 2•2 months ago
|
||
And GeckoViewTabUtil.userContextId
will return same value from GeckoView Java API.
Comment 3•2 months ago
|
||
Would resolving bug1641420 help alleviate this?
Assignee | ||
Comment 4•2 months ago
|
||
(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.)
Assignee | ||
Comment 5•2 months ago
|
||
Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Assignee | ||
Comment 6•1 month ago
|
||
GeckoView's tab isn't XUL element. so we have to emulate some methods.
Assignee | ||
Comment 7•1 month ago
|
||
Although webdriver/tests/bidi/browser/remove_user_context/user_context.py.ini
isn't still passed, we should run more tests that is successful.
Updated•1 month ago
|
Description
•