[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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

Commits:

  • ee46b985
    by Pier Angelo Vendrame at 2023-02-22T11:28:42+00:00
    squash! Bug 31575: Disable Firefox Home (Activity Stream)
    
    Bug 40144: Redirect about:privatebrowsing to the user's home
    

1 changed file:

Changes:

  • browser/components/about/AboutRedirector.cpp
    ... ... @@ -82,7 +82,7 @@ static const RedirEntry kRedirMap[] = {
    82 82
     #endif
    
    83 83
         {"policies", "chrome://browser/content/policies/aboutPolicies.html",
    
    84 84
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    
    85
    -    {"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
    
    85
    +    {"privatebrowsing", "about:blank",
    
    86 86
          nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    87 87
              nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
    
    88 88
              nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS},
    
    ... ... @@ -263,7 +263,8 @@ AboutRedirector::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo,
    263 263
           // enabled about:newtab. Disabled about:newtab page uses fallback.
    
    264 264
           if (path.EqualsLiteral("home") ||
    
    265 265
               (StaticPrefs::browser_newtabpage_enabled() &&
    
    266
    -           path.EqualsLiteral("newtab"))) {
    
    266
    +           path.EqualsLiteral("newtab")) ||
    
    267
    +          path.EqualsLiteral("privatebrowsing")) {
    
    267 268
             nsCOMPtr<nsIAboutNewTabService> aboutNewTabService =
    
    268 269
                 do_GetService("@mozilla.org/browser/aboutnewtab-service;1", &rv);
    
    269 270
             NS_ENSURE_SUCCESS(rv, rv);
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits