Closed Bug 1570239 Opened 5 years ago Closed 5 years ago

GenerateMessages in Localization.webidl shouldn't take locales parameter

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: Pike, Assigned: zbraniecki)

Details

Attachments

(1 file)

In dom/chrome-webidl/Localization.webidl, we have the signature:

callback GenerateMessages = Promise<any> (sequence<DOMString> aAppLocales, sequence<DOMString> aResourceIds);

That matches the signature of the l10n registry, but not the signature that Localization.jsm ends up using, which would be just

Promise<any> (sequence<DOMString> aResourceIds)

This also reflects in the test cases, https://searchfox.org/mozilla-central/search?q=mockGenerateMessages&case=false&regexp=false&path=.

Stas fixed on those in intl, but this also needs fixes in dom/l10n/.

Or did we miss something, Zibi?

Flags: needinfo?(gandalf)

(In reply to Axel Hecht [:Pike] from comment #0)

Stas fixed on those in intl, but this also needs fixes in dom/l10n/.

For the record, I filed bug 1568966 about this in intl/l10n/test, and the fix landed as part of bug 1568914.

Or did we miss something, Zibi?

Nope, I don't think so. It's just my mistake. Thanks for investigating!

Taking.

Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Flags: needinfo?(gandalf)
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f01f7bfe772a
GenerateMessages in Localization.webidl shouldn't take locales parameter. r=Pike
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Regressions: 1570887
No longer regressions: 1570887
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: