Setting default locale with JS_SetDefaultLocale doesn't affect newly created cross-origin iframes
Categories
(Core :: Internationalization, defect)
Tracking
()
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.
Reporter | ||
Comment 1•28 days ago
|
||
Dan or André, do you maybe have an idea of what could be an issue here?
Comment 2•28 days ago
|
||
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?
Comment 3•28 days ago
|
||
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.
Comment 4•14 days ago
|
||
The severity field is not set for this bug.
:m_kato, could you have a look please?
For more information, please visit BugBot documentation.
Updated•14 days ago
|
Reporter | ||
Comment 5•10 days ago
|
||
Will be fixed in the scope of the bug 1980211.
Description
•