Open Bug 1405467 Opened 7 years ago Updated 2 years ago

Add a test that verifies that no string is requested before langpack is registered

Categories

(Core :: Internationalization, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: zbraniecki, Unassigned)

References

(Blocks 1 open bug)

Details

We know that langpacks are not deterministic and are registered asynchronously. That means that it is not impossible for startup code to request strings before langpacks are registered which will result in wrong language resources being used. In L20n world, all the declarative code (XUL/HTML etc.) can retranslate on fly, but any requests for strings that are manual should not resolve until langpacks are registered. If we allow for synchronous string retrieving, we should have a test that: 1) Installs a langpack 2) Switches language to the langpack 3) Starts an instrumented browser 4) If the synchronous `getString` API is called before langpack is installed, report error.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.