Mercurial > nightly_tester_tools
view chrome/content/songbird.js @ 4:8aa443d1e395 default tip
revised Makefile
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 02 Dec 2008 20:55:06 +0900 |
parents | 472a16863ecc |
children |
line wrap: on
line source
var nightlyApp = { storedTitle: document.documentElement.getAttribute("titlemodifier"), init: function() { // var brandbundle = document.getElementById("bundle_brand"); var bundleSvc = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var brandbundle = bundleSvc. createBundle("chrome://branding/locale/brand.properties"); if (nightly.variables.name==null) { nightly.variables.name=brandbundle.GetStringFromName("brandShortName"); } nightly.variables.brandname=brandbundle.GetStringFromName("brandFullName"); nightly.variables.defaulttitle=nightlyApp.storedTitle; }, detectLeaks: function(event) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.getMostRecentWindow("Nightly:LeakReporter"); if (win) win.focus(); else window.openDialog("chrome://nightly/content/leaks/leaks.xul", "_blank", "chrome,all,dialog=no"); }, openURL: function(url, event) { openUILink(url, event, false, true); }, setCustomTitle: function(title) { var titlebar = document.getElementsByTagName("sb-sys-titlebar")[0]; titlebar.setAttribute("value", title); }, setBlankTitle: function() { var titlebar = document.getElementsByTagName("sb-sys-titlebar")[0]; titlebar.setAttribute("value", ""); }, setStandardTitle: function() { var titlebar = document.getElementsByTagName("sb-sys-titlebar")[0]; titlebar.setAttribute("value", nightlyApp.storedTitle); } }