Is there a way to access Intl.Collator in a Firefox add-on built using the SDK?
It’s available on the global window object of ordinary page scripts, but it’s not defined in the global scope of an addon or, apparently, in the window of a page-mod. Any other ways to access it? A page-worker? An XPCOM interface?
Intl.Collator
is available in an addon’s global scope in Firefox 29+.
Intl.Collator
support only arrived in Firefox 29, currently available in the Aurora channel (see bugzil.la/853301).