Clean up navigator.mozL10n.get fallback argument

RESOLVED FIXED

Status

Firefox OS
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: rik, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
Followup to bug 862785.

The fallback mecanism is not working and the code is not obvious so we should clean that up.

getL10nData returns {} when there is no key matching. This is a truthy value and not an obvious one. It should return false or something similar. And then l10n_get should be modified to remove the fallback argument and handle the false value returned by getL10nData.
(Reporter)

Comment 1

5 years ago
This was fixed in bug 853933.
(Reporter)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.