зеркало из https://github.com/mozilla/pjs.git
Small perf tweak.
This commit is contained in:
Родитель
d5ba374d29
Коммит
6ba58a0f1f
|
@ -51,6 +51,7 @@ pref("general.useragent.misc", "rv:0.1");
|
||||||
pref("backups.number_of_prefs_copies", 1);
|
pref("backups.number_of_prefs_copies", 1);
|
||||||
|
|
||||||
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last
|
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last
|
||||||
|
// XXXBlake Remove this stupid pref
|
||||||
pref("browser.startup.page", 1);
|
pref("browser.startup.page", 1);
|
||||||
pref("browser.startup.homepage", "chrome://navigator-region/locale/region.properties");
|
pref("browser.startup.homepage", "chrome://navigator-region/locale/region.properties");
|
||||||
// "browser.startup.homepage_override" was for 4.x
|
// "browser.startup.homepage_override" was for 4.x
|
||||||
|
|
|
@ -360,10 +360,10 @@ function Startup()
|
||||||
gClickSelectsAll = pref.getBoolPref("browser.urlbar.clickSelectsAll");
|
gClickSelectsAll = pref.getBoolPref("browser.urlbar.clickSelectsAll");
|
||||||
|
|
||||||
// set home button tooltip text
|
// set home button tooltip text
|
||||||
var homePage = getHomePage();
|
|
||||||
if (homePage) {
|
|
||||||
var homeButton = document.getElementById("home-button");
|
var homeButton = document.getElementById("home-button");
|
||||||
if (homeButton)
|
if (homeButton) {
|
||||||
|
var homePage = getHomePage();
|
||||||
|
if (homePage)
|
||||||
homeButton.setAttribute("tooltiptext", homePage);
|
homeButton.setAttribute("tooltiptext", homePage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче