• Skip to main content
  • Select language
  • Skip to search
mozilla
Mozilla Developer Network
Sign in with Sign in
  • Persona
  • GitHub
  • Zones
    • Add-ons
    • App Center
    • Firefox
    • Firefox Marketplace
    • Firefox OS
    • Persona
  • Web Platform
    Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • APIs / DOM
    • Apps
    • MathML
    References & Guides
    • Learn the Web
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Demos
    • ...more docs
  • Tools
  • Demos
  • Connect
  •  
Add-ons
    • No translations exist for this article.
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this page
  1. MDN
  2. Mozilla
  3. Add-ons
  4. Add-on SDK
  5. Low-Level APIs
  6. system/xul-app
Your Search Results

    system/xul-app

    Show Sidebar
    In This Article
    1. Globals
      1. Functions
        1. is(name)
        2. isOneOf(names)
        3. versionInRange(version, lowInclusive, highExclusive)
      2. Properties
        1. ID
        2. name
        3. version
        4. platformVersion
        5. ids

    Experimental

    Information about the application on which your add-on is running.

    With the exception of ids, each of these properties exposes the attribute of the same name on the nsIXULAppInfo interface. For more information, see the MDN documentation.

    Globals

    Functions

    is(name)

    Checks whether the host application is the given application.

    Parameters

    name : string
    A host application name.

    Returns

    boolean : True if the host application is name and false otherwise.

    isOneOf(names)

    Checks whether the host application is one of the given applications.

    Parameters

    names : array
    An array of host application names.

    Returns

    boolean : True if the host application is one of the names and false otherwise.

    versionInRange(version, lowInclusive, highExclusive)

    Compares a given version to a version range. See the MDN documentation for details on version comparisons.

    Parameters

    version : string
    The version to compare.

    lowInclusive : string
    The lower bound of the version range to compare. The range includes this bound.

    highExclusive : string
    The upper bound of the version range to compare. The range does not include this bound.

    Returns

    boolean : True if version falls in the given range and false otherwise.

    Properties

    ID

    The GUID of the host application. For example, for Firefox this value is "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}".

    name

    The host application name. The possible values here are:

    • "Firefox"
    • "Fennec"
    • "Mozilla"
    • "SeaMonkey"
    • "Sunbird"
    • "Thunderbird"

    "Firefox"and"Fennec"` are the most commonly used values.

    version

    The host application version.

    platformVersion

    The Gecko/XULRunner platform version.

    ids

    A mapping of application names to their IDs. For example, ids["Firefox"] == "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}".

    Document Tags and Contributors

    Contributors to this page: wbamberg
    Last updated by: wbamberg, Dec 18, 2013 7:47:25 PM
    Hide Sidebar
    1. Restartless extensions
    2. Legacy extensions
    3. Add-on SDK
      1. Installation
      2. Tutorials
      3. Guides
      4. High-Level APIs
        1. addon-page
        2. base64
        3. clipboard
        4. context-menu
        5. hotkeys
        6. indexed-db
        7. l10n
        8. notifications
        9. page-mod
        10. page-worker
        11. panel
        12. passwords
        13. private-browsing
        14. querystring
        15. request
        16. selection
        17. self
        18. simple-prefs
        19. simple-storage
        20. system
        21. tabs
        22. timers
        23. ui
        24. url
        25. widget
        26. windows
      5. Low-Level APIs
        1. /loader
        2. console/plain-text
        3. console/traceback
        4. content/content
        5. content/loader
        6. content/mod
        7. content/symbiont
        8. content/worker
        9. core/heritage
        10. core/namespace
        11. core/promise
        12. dev/panel
        13. event/core
        14. event/target
        15. frame/hidden-frame
        16. frame/utils
        17. fs/path
        18. io/byte-streams
        19. io/file
        20. io/text-streams
        21. lang/functional
        22. lang/type
        23. loader/cuddlefish
        24. loader/sandbox
        25. net/url
        26. net/xhr
        27. places/bookmarks
        28. places/favicon
        29. places/history
        30. platform/xpcom
        31. preferences/event-target
        32. preferences/service
        33. remote/child
        34. remote/parent
        35. stylesheet/style
        36. stylesheet/utils
        37. system/child_process
        38. system/environment
        39. system/events
        40. system/runtime
        41. system/unload
        42. system/xul-app
        43. tabs/utils
        44. test/assert
        45. test/harness
        46. test/httpd
        47. test/runner
        48. test/utils
        49. ui/button/action
        50. ui/button/toggle
        51. ui/frame
        52. ui/id
        53. ui/sidebar
        54. ui/toolbar
        55. util/array
        56. util/collection
        57. util/deprecate
        58. util/list
        59. util/match-pattern
        60. util/object
        61. util/uuid
        62. window/utils
      6. Tools Reference
        1. console
        2. cfx
        3. cfx to jpm
        4. jpm
        5. package.json
        6. The Add-on Debugger
      7. Release notes
    4. Techniques
      1. Promises
    5. Recommended practices
      1. Performance
      2. Security
      3. Etiquette
    6. Themes
      1. Lightweight themes
      2. Lightweight themes FAQ
      3. Complete themes
    7. Publishing add-ons
      1. addons.mozilla.org
        1. Submit a new add-on
        2. Policies
          1. Add-on Submission
          2. Review Process
          3. Maintaining Your Add-on
          4. Featured Add-ons
          5. Developer Agreement
          6. Contacting Us
      2. Add-on guidelines
    8. Community and Support
      1. Add-ons Blog
      2. Add-on Forums
      3. Stack Overflow
      4. Development Newsgroup
      5. IRC Channel
     

    © 2005-2015 Mozilla Developer Network and individual contributors
    Content is available under these licenses · About MDN · Terms · Privacy · Cookies · Contribute to the code