Skip to content
Snippets Groups Projects
Commit 3c4ba9f8 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern: Committed by Richard Pospesel
Browse files

squash! Bug 31575: Disable Firefox Home (Activity Stream)

Bug 40144: Redirect about:privatebrowsing to the user's home
parent 9822d071
Branches
No related tags found
1 merge request!580Rebase Tor Browser Alpha to 102.9.0esr
......@@ -77,7 +77,7 @@ static const RedirEntry kRedirMap[] = {
#endif
{"policies", "chrome://browser/content/policies/aboutPolicies.html",
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
{"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
{"privatebrowsing", "about:blank",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS},
......@@ -190,7 +190,8 @@ AboutRedirector::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo,
// enabled about:newtab. Disabled about:newtab page uses fallback.
if (path.EqualsLiteral("home") ||
(StaticPrefs::browser_newtabpage_enabled() &&
path.EqualsLiteral("newtab"))) {
path.EqualsLiteral("newtab")) ||
path.EqualsLiteral("privatebrowsing")) {
nsCOMPtr<nsIAboutNewTabService> aboutNewTabService =
do_GetService("@mozilla.org/browser/aboutnewtab-service;1", &rv);
NS_ENSURE_SUCCESS(rv, rv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment