Commit aa8a1137 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

MB 39: Add home page about:mullvad-browser

parent 7cef9093
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
// Preferences specific to Mullvad Browser

pref("browser.startup.homepage", "about:mullvad-browser");

// Do not show the bookmark panel for now, because it makes the initial browser
// window (about:home) bigger, and regular pages will show letterbox margins as
// a result.
+1 −1
Original line number Diff line number Diff line
@@ -1431,7 +1431,7 @@ var BookmarkingUI = {
    if (newTabURL == "about:blank") {
      newTabURL = "about:newtab";
    }
    let newTabURLs = [newTabURL, "about:home"];
    let newTabURLs = [newTabURL, "about:home", "about:mullvad-browser"];
    if (PrivateBrowsingUtils.isWindowPrivate(window)) {
      newTabURLs.push("about:privatebrowsing");
    }
+2 −0
Original line number Diff line number Diff line
@@ -699,6 +699,7 @@ async function gLazyFindCommand(cmd, ...args) {
}

var gPageIcons = {
  "about:mullvad-browser": "chrome://branding/content/icon32.png",
  "about:home": "chrome://branding/content/icon32.png",
  "about:newtab": "chrome://branding/content/icon32.png",
  "about:welcome": "chrome://branding/content/icon32.png",
@@ -706,6 +707,7 @@ var gPageIcons = {
};

var gInitialPages = [
  "about:mullvad-browser",
  "about:blank",
  "about:home",
  "about:firefoxview",
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ function isBlankPageURL(aURL) {
  return (
    aURL == "about:blank" ||
    aURL == "about:home" ||
    aURL == "about:mullvad-browser" ||
    aURL == BROWSER_NEW_TAB_URL ||
    aURL == "chrome://browser/content/blanktab.html"
  );
+5 −0
Original line number Diff line number Diff line
@@ -143,6 +143,11 @@ static const RedirEntry kRedirMap[] = {
         nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    {"restartrequired", "chrome://browser/content/aboutRestartRequired.xhtml",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    {"mullvad-browser",
     "chrome://browser/content/mullvad-browser/aboutMullvadBrowser.xhtml",
     nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
         nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::IS_SECURE_CHROME_UI},
};

static nsAutoCString GetAboutModuleName(nsIURI* aURI) {
Loading