Locale override is sometimes shared between BrowsingContexts
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox144 fixed)
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: hbenl, Assigned: Sasha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m17][wptsync upstream][webdriver:relnote])
Attachments
(5 files)
While working on this PR I noticed the test "should be isolated between contexts" in tests/library/browsercontext-locale.spec.ts fails. The test creates 8 playwright pages with one locale and then another one with a different locale (note this comment). If I reduce the number of pages then the test succeeds.
| Assignee | ||
Comment 1•3 months ago
|
||
| Assignee | ||
Comment 2•3 months ago
|
||
Updated•3 months ago
|
| Assignee | ||
Comment 3•3 months ago
|
||
| Assignee | ||
Comment 4•3 months ago
|
||
Ok, as we discovered the issue is that because we attach the locale override to the JSRuntime, which is shared inside the process, the locale override becomes also shared across the browsing contexts which share the same process.
The solution proposed by SpiderMonkey folks is to attach the override to Realm instead, since Realm is unique for browsing contexts.
| Assignee | ||
Comment 5•3 months ago
|
||
| Assignee | ||
Comment 6•3 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
Comment 8•2 months ago
|
||
The severity field is not set for this bug.
:whimboo, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 months ago
|
Comment 11•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/33dcf5c2e643
https://hg.mozilla.org/mozilla-central/rev/e33f7c53a1a1
https://hg.mozilla.org/mozilla-central/rev/3a43f9238e35
https://hg.mozilla.org/mozilla-central/rev/7cf969f76172
https://hg.mozilla.org/mozilla-central/rev/13bba316b2eb
Updated•1 month ago
|
Description
•