michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // get release notes and vendor URL from prefs michael@0: var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"] michael@0: .getService(Components.interfaces.nsIURLFormatter); michael@0: var releaseNotesURL = formatter.formatURLPref("app.releaseNotesURL"); michael@0: if (releaseNotesURL != "about:blank") { michael@0: var relnotes = document.getElementById("releaseNotesURL"); michael@0: relnotes.setAttribute("href", releaseNotesURL); michael@0: relnotes.parentNode.removeAttribute("hidden"); michael@0: } michael@0: michael@0: var vendorURL = formatter.formatURLPref("app.vendorURL"); michael@0: if (vendorURL != "about:blank") { michael@0: var vendor = document.getElementById("vendorURL"); michael@0: vendor.setAttribute("href", vendorURL); michael@0: } michael@0: michael@0: // insert the version of the XUL application (!= XULRunner platform version) michael@0: var versionNum = Components.classes["@mozilla.org/xre/app-info;1"] michael@0: .getService(Components.interfaces.nsIXULAppInfo) michael@0: .version; michael@0: var version = document.getElementById("version"); michael@0: version.textContent += " " + versionNum; michael@0: michael@0: // append user agent michael@0: var ua = navigator.userAgent; michael@0: if (ua) { michael@0: document.getElementById("buildID").textContent += " " + ua; michael@0: }