Closed Bug 1980211 Opened 3 months ago Closed 2 months ago

Locale override is sometimes shared between BrowsingContexts

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

defect
Points:
3

Tracking

(firefox144 fixed)

RESOLVED FIXED
144 Branch
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: nobody → aborovova
Status: NEW → ASSIGNED

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.

Duplicate of this bug: 1979026
Attachment #9506069 - Attachment description: Bug 1980211 - Add gecko specific tests locale override in sandboxes. → Bug 1980211 - [wdspec] Add tests for locale override in sandboxes.
Points: --- → 3
Priority: -- → P2
Whiteboard: [webdriver:m17]

The severity field is not set for this bug.
:whimboo, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hskupin)
Severity: -- → S3
Flags: needinfo?(hskupin)
Blocks: 1983807
Blocks: 1978075
Pushed by aborovova@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/79c6fe2728e6 https://hg.mozilla.org/integration/autoland/rev/33dcf5c2e643 Attach locale override to Realm instead of setting it in the process. r=dom-core,smaug,tschuster https://github.com/mozilla-firefox/firefox/commit/ab8a5f4e5613 https://hg.mozilla.org/integration/autoland/rev/e33f7c53a1a1 [bidi] Remove workaround to do an extra roundrip for newly created cross-origin iframes. r=webdriver-reviewers,jdescottes https://github.com/mozilla-firefox/firefox/commit/871afacccf6c https://hg.mozilla.org/integration/autoland/rev/3a43f9238e35 [wdspec] Fix "another_locale" fixture. r=webdriver-reviewers,jdescottes https://github.com/mozilla-firefox/firefox/commit/a8c4b93f08ab https://hg.mozilla.org/integration/autoland/rev/7cf969f76172 Add gecko specific test to verify that locale override is isolated inside browsing context. r=webdriver-reviewers,jdescottes https://github.com/mozilla-firefox/firefox/commit/5b5bc02501d6 https://hg.mozilla.org/integration/autoland/rev/13bba316b2eb [wdspec] Add tests for locale override in sandboxes. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/54421 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m17] → [webdriver:m17], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m17], [wptsync upstream] → [webdriver:m17][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: