mozilla
Your Search Results

    WorkerNavigator

    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    The WorkerNavigator interface represents a subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.

    Properties

    The WorkerNavigator interface implements properties from the NavigatorID, NavigatorLanguage and NavigatorOnLine interfaces.

    NavigatorID.appCodeName Read only
    Always returns 'Mozilla', in any browser. This property is kept only for compatibility purposes.
    NavigatorID.appName Read only
    Returns the official name of the browser. Do not rely on this property to return the correct value.
    NavigatorID.appVersion Read only
    Returns the version of the browser as a string. Do not rely on this property to return the correct value.
    NavigatorLanguage.language Read only
    Returns a DOMString representing the language version of the browser. The null value is returned when this is unknown.
    NavigatorLanguage.languages Read only
    Returns an array of DOMStrings representing the languages known to the user, in order of preference.
    NavigatorOnLine.onLine Read only
    Returns a Boolean indicating whether the browser is online.
    NavigatorID.platform Read only
    Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.
    NavigatorID.product Read only
    Always returns 'Gecko', on any browser. This property is kept only for compatibility purposes.
    NavigatorID.userAgent Read only
    Returns the user agent string for the current browser.

    Methods

    The WorkerNavigator interface implements methods from the NavigatorID, NavigatorLanguage and NavigatorOnLine interfaces.

    Specifications

    Specification Status Comment
    Web Workers
    The definition of 'WorkerNavigator' in that specification.
    Candidate Recommendation Initial definition

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support ? 3.5 (1.9.1) ? ? ?
    appCodeName, product, taintEnabled() (Yes) 28 (28) (Yes) (Yes) (Yes)
    onLine ? 29 (29) ? ? ?
    language, languages ? 35 (35) ? ? ?
    Feature Android Chrome for Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support ? ? 1.0 (1.9.1) 1.0.1 ? ? ?
    appCodeName, product, taintEnabled() (Yes) (Yes) 28.0 (28) 1.3 (Yes) (Yes) (Yes)
    onLine ? ? 29.0 (29) 1.4 ? ? ?
    language, languages ? Not supported 35.0 (35) 2.2 ? ? ?

    See also

     

    ドキュメントのタグと貢献者

    Contributors to this page: chrisdavidmills, teoli
    最終更新者: teoli,