Bug 851130 - Part 5 - Add support for about:start alias. r=mbrubeck

This commit is contained in:
Jim Mathies 2013-08-09 04:50:58 -05:00
parent 16eb512525
commit 623aae8bd4
3 changed files with 5 additions and 6 deletions

View File

@ -11,7 +11,7 @@ let Cr = Components.results;
Cu.import("resource://gre/modules/PageThumbs.jsm");
// Page for which the start UI is shown
const kStartURI = "chrome://browser/content/Start.xul";
const kStartURI = "about:start";
const kBrowserViewZoomLevelPrecision = 10000;

View File

@ -8,8 +8,8 @@ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
let modules = {
start: {
uri: "about:blank",
privileged: false
uri: "chrome://browser/content/Start.xul",
privileged: true
},
// about:blank has some bad loading behavior we can avoid, if we use an alias
empty: {
@ -36,9 +36,8 @@ let modules = {
uri: "chrome://browser/content/aboutCertError.xhtml",
privileged: true
},
// an alias for about:start
home: {
uri: "about:blank",
uri: "about:start",
privileged: true
}
}

View File

@ -73,7 +73,7 @@ function needHomepageOverride() {
}
function getHomePage() {
let url = "chrome://browser/content/Start.xul";
let url = "about:start";
try {
url = Services.prefs.getComplexValue("browser.startup.homepage", Ci.nsIPrefLocalizedString).data;
} catch (e) { }