Bug 1224944 - Improve the comments in NavigatorLanguage interface, r=bz

This commit is contained in:
Andrea Marchesini 2015-11-18 00:20:38 +00:00
parent e416737ae7
commit bff87b648d

View File

@ -54,8 +54,10 @@ interface NavigatorID {
[NoInterfaceObject, Exposed=(Window,Worker)]
interface NavigatorLanguage {
// These 2 values are cached. They are updated when pref
// intl.accept_languages is changed.
// These two attributes are cached because this interface is also implemented
// by Workernavigator and this way we don't have to go back to the
// main-thread from the worker thread anytime we need to retrieve them. They
// are updated when pref intl.accept_languages is changed.
[Pure, Cached]
readonly attribute DOMString? language;