Closed Bug 2015655 Opened 7 months ago Closed 3 months ago

WebDriver Bidi does not emulate locale in dedicated and shared workers

Categories

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

Firefox 146
defect
Points:
5

Tracking

(firefox153 fixed)

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: aslushnikov, Assigned: Sasha)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m20][wptsync upstream][webdriver:relnote])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Steps to reproduce:

Reproduction:

  1. clone playwright repo: git clone https://github.com/microsoft/playwright
  2. remove the line #169 - the it.fail expectation.
  3. Run the test with Firefox Bidi: npm run biditest browsercontext-locale:168 -- --project moz-firefox-nightly-library

Actual results:

The test fails because WebDriver bidi does not emulate locale in workers.

Expected results:

WebDriver should emulate locale in workers. The test should pass.

The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Internationalization
Product: Firefox → Core
Component: Internationalization → WebDriver BiDi
Product: Core → Remote Protocol
Blocks: 1938048
See Also: → 1996547

For locale emulation of the JS APIs to be picked up by the workers, we have to implement the logic of updating the locale in the realm of the existing and new workers.

For handling of navigator.language in workers, we have bug 1996547.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Points: --- → 5
Priority: -- → P3
Whiteboard: [webdriver:m20]
Priority: P3 → P2
Priority: P2 → P3

Hi folks,

Are there any plans on fixing this? If not, we'll consider migrating away from BiDi-powered api for locale emulation back to the Juggler home-grown implementation.

(In reply to Andrey Lushnikov from comment #3)

Hi folks,

Are there any plans on fixing this? If not, we'll consider migrating away from BiDi-powered api for locale emulation back to the Juggler home-grown implementation.

Hi!

Yes, it's planned for this quarter (same for timezone), so we should get to it soon.

Priority: P3 → P2
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Summary: WebDriver Bidi does not emulate locale in workers → WebDriver Bidi does not emulate locale in dedicated and shared workers
Attachment #9588866 - Attachment description: Bug 2015655 - Override locale and navigator.language/s in dedicated and shared workers when browsingContext.languageOverride is set. → Bug 2015655 - Override locale and navigator.language/s in dedicated and shared workers when browsingContext.languageOverride is set in related browsing contexts.
Pushed by aborovova@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/322f939aefce https://hg.mozilla.org/integration/autoland/rev/36c9a0048fdd Override locale and navigator.language/s in dedicated and shared workers when browsingContext.languageOverride is set in related browsing contexts. r=dom-worker-reviewers,asuth https://github.com/mozilla-firefox/firefox/commit/8a76b7d3341e https://hg.mozilla.org/integration/autoland/rev/d7b3238c6283 Remove unneeded mDefaultLocale from browsingContext.languageOverride setup logic. r=dom-core,smaug https://github.com/mozilla-firefox/firefox/commit/c4b221f54974 https://hg.mozilla.org/integration/autoland/rev/1e3b4f7b16ad [wdspec] Add tests for overriding locale and navigator.language/s with "emulation.setLocaleOverride" in workers. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60269 for changes under testing/web-platform/tests

Whiteboard: [webdriver:m20] → [webdriver:m20], [wptsync upstream]

Upstream PR merged by moz-wptsync-bot

Whiteboard: [webdriver:m20], [wptsync upstream] → [webdriver:m20][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: