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

Commits:

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);