Closed Bug 1979026 Opened 28 days ago Closed 10 days ago

Setting default locale with JS_SetDefaultLocale doesn't affect newly created cross-origin iframes

Categories

(Core :: Internationalization, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1980211

People

(Reporter: Sasha, Unassigned)

References

Details

While working on WebDriver BiDi command "emulation.setLocaleOverride" which is supposed to set a locale override and uses JS_SetDefaultLocale API to achieve this, we've noticed that newly created cross-origin iframes will not inherit the overriden default locale. It works fine for same-origin iframes. In the scope of the bug 1978533 we introduced a workaround in WebDriver BiDi layer to reapply the locale override when a cross-origin iframe is created, which works fine, but still it would be preferable to handle this solely on platform side, if possible.

Dan or André, do you maybe have an idea of what could be an issue here?

Flags: needinfo?(dminor)
Flags: needinfo?(andrebargull)

JS_SetDefaultLocale applies the default runtime locale for a single JSRuntime. It does neither affect the parent runtime nor any new child runtimes (or any other unrelated runtimes from different processes). Maybe that's the issue here?

Flags: needinfo?(andrebargull)

If there's a workaround, and this is intended for automation / testing code, I don't think we'd change the behaviour on the platform side.

Flags: needinfo?(dminor)
See Also: → 1938048

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

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)
Severity: -- → S3
Flags: needinfo?(m_kato)

Will be fixed in the scope of the bug 1980211.

Status: NEW → RESOLVED
Closed: 10 days ago
Duplicate of bug: 1980211
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.