[tor-commits] [Git][tpo/applications/tor-browser][base-browser-102.8.0esr-12.5-1] squash! Bug 31575: Disable Firefox Home (Activity Stream)

Richard Pospesel (@richard) git at gitlab.torproject.org
Wed Feb 22 11:36:09 UTC 2023



Richard Pospesel pushed to branch base-browser-102.8.0esr-12.5-1 at The Tor Project / Applications / Tor Browser


Commits:
1aaacc15 by Pier Angelo Vendrame at 2023-02-22T11:35:58+00:00
squash! Bug 31575: Disable Firefox Home (Activity Stream)

Bug 40144: Redirect about:privatebrowsing to the user's home

- - - - -


1 changed file:

- browser/components/about/AboutRedirector.cpp


Changes:

=====================================
browser/components/about/AboutRedirector.cpp
=====================================
@@ -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);



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1aaacc156998530072c765eb6e6d79149d39e2f8

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1aaacc156998530072c765eb6e6d79149d39e2f8
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230222/74b24863/attachment-0001.htm>


More information about the tor-commits mailing list