Verified Commit 8b60a82e authored by henry's avatar henry Committed by ma1
Browse files

MB 39: Add home page about:mullvad-browser

parent 196d9ac4
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 −0
Original line number Diff line number Diff line
@@ -1426,6 +1426,7 @@ var BookmarkingUI = {
    let newTabURLs = [
      newTabURL,
      "about:home",
      "about:mullvad-browser",
      "chrome://browser/content/blanktab.html",
    ];
    if (PrivateBrowsingUtils.isWindowPrivate(window)) {
+2 −0
Original line number Diff line number Diff line
@@ -724,6 +724,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",
@@ -731,6 +732,7 @@ var gPageIcons = {
};

var gInitialPages = [
  "about:mullvad-browser",
  "about:blank",
  "about:home",
  "about:firefoxview",
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,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"
  );
+14 −0
Original line number Diff line number Diff line
@@ -448,6 +448,20 @@ let JSWINDOWACTORS = {
    matches: ["about:messagepreview", "about:messagepreview?*"],
  },

  AboutMullvadBrowser: {
    parent: {
      esModuleURI: "resource:///actors/AboutMullvadBrowserParent.sys.mjs",
    },
    child: {
      esModuleURI: "resource:///actors/AboutMullvadBrowserChild.sys.mjs",
      events: {
        DOMContentLoaded: {},
      },
    },

    matches: ["about:mullvad-browser"],
  },

  AboutPrivateBrowsing: {
    parent: {
      esModuleURI: "resource:///actors/AboutPrivateBrowsingParent.sys.mjs",
Loading