i18n.detectLanguage API broken on all plattforms, except Firefox
Categories
(WebExtensions :: General, defect, P5)
Tracking
(firefox106 fixed)
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: TbSync, Assigned: TbSync)
References
Details
(Keywords: intl)
Attachments
(1 file, 1 obsolete file)
The i18n API lives in toolkit and is therefore used for multiple platforms. However, it loads
LanguageDetector.jsm
1 which exists only for Firefox 2. The function browser.i18n.detectLanguage()
is therefore broken on all platforms, except Firefox. The tests on those other platforms are disabled 3.
Could that JSM or the entire translation folder be moved to toolkit as well?
Updated•2 years ago
|
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:mixedpuppy, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•2 years ago
|
||
Hi Florian,
is LanguageDetector.jsm a JSM that we could technically be moved at toolkit level?
Comment 3•2 years ago
|
||
(In reply to Luca Greco [:rpl] [:luca] [:lgreco] from comment #2)
is LanguageDetector.jsm a JSM that we could technically be moved at toolkit level?
That seems possible. You would also need to move the cld2
folder and the test/unit
folder from the browser/components/translation
folder to toolkit/.
Comment 4•2 years ago
|
||
The severity field is not set for this bug.
:mixedpuppy, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•2 years ago
|
||
(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #4)
The severity field is not set for this bug.
:mixedpuppy, could you have a look please?
This is blocking other work. At least S3.
Comment 6•2 years ago
|
||
Not a Firefox bug, but patches welcome for TB.
Comment 7•2 years ago
|
||
Patches are welcome indeed. John - are you interested in contributing a patch?
Assignee | ||
Comment 8•2 years ago
|
||
Yes, but i need another week, as I have my head in release related issues currently.
Assignee | ||
Comment 9•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 10•2 years ago
|
||
Assignee | ||
Comment 12•2 years ago
|
||
Is there something wrong with my patch?
Comment 13•2 years ago
|
||
I overlooked the review request.
Note that while the extension API is a consumer of this internal library, the LanguageDetector.jsm itself is part of Firefox::Translation, so you should also tag the owner of that component. Perhaps :florian?
Comment 14•2 years ago
|
||
Pushed by john@thunderbird.net: https://hg.mozilla.org/integration/autoland/rev/a8828277a87e Move LanguageDetector.jsm and related files to toolkit. r=robwu
Comment 15•2 years ago
|
||
bugherder |
Description
•