Commit 027617b0 authored by henry's avatar henry Committed by brizental
Browse files

fixup! BB 44045: Disable ML features.

TB 44045: Moved changes to the correct target.
parent dcb27483
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -127,7 +127,8 @@ static const RedirEntry kRedirMap[] = {
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
         nsIAboutModule::HIDE_FROM_ABOUTABOUT},
#if defined(NIGHTLY_BUILD)
#if defined(NIGHTLY_BUILD) && !defined(BASE_BROWSER_VERSION)
    // Do not include about:inference since "ml" is excluded. tor-browser#44045.
    {"inference", "chrome://global/content/aboutInference.html",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
#endif
@@ -211,6 +212,9 @@ static const RedirEntry kRedirMap[] = {
         nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
         nsIAboutModule::HIDE_FROM_ABOUTABOUT |
         nsIAboutModule::IS_SECURE_CHROME_UI},
#ifndef BASE_BROWSER_VERSION
    // Remove about:translations since translations are disabled.
    // See tor-browser#44045 and tor-browser#42872.
    {"translations",
     "chrome://global/content/translations/about-translations.html",
     nsIAboutModule::ALLOW_SCRIPT |
@@ -218,6 +222,7 @@ static const RedirEntry kRedirMap[] = {
         nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
         nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
         nsIAboutModule::HIDE_FROM_ABOUTABOUT},
#endif
#ifndef BASE_BROWSER_VERSION
    {"url-classifier", "chrome://global/content/aboutUrlClassifier.xhtml",
     nsIAboutModule::ALLOW_SCRIPT},
+4 −3
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ about_pages = [
    'srcdoc',
    'support',
    'torconnect',
    'translations',
    # Remove about:translations since translations are disabled.
    # See tor-browser#44045 and tor-browser#42872.
    # Removed 'url-classifier'. tor-browser#42831.
]

@@ -53,8 +54,8 @@ if defined('MOZ_TELEMETRY_REPORTING') and not defined('MOZ_GLEAN_ANDROID'):
    about_pages.append('glean')
if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android' and buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'windows':
    about_pages.append('webauthn')
if defined('NIGHTLY_BUILD'):
    about_pages.append('inference')
# Do not include about:inference since "ml" component is missing.
# tor-browser#44045.

Headers = ['/docshell/build/nsDocShellModule.h']