mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851130 - Part 5 - Add support for about:start alias. r=mbrubeck
This commit is contained in:
parent
16eb512525
commit
623aae8bd4
@ -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;
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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) { }
|
||||
|
Loading…
Reference in New Issue
Block a user