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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-149.0a1-16.0-2] fixup! BB 44045: Disable ML features.



Title: GitLab

henry pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser

Commits:

  • db4c2720
    by Henry Wilkes at 2026-03-24T18:12:59+00:00
    fixup! BB 44045: Disable ML features.
    
    TB 44780: Drop AIFeature dependency for TranslationsFeature.
    
    The AIFeature.sys.mjs is not in the build.
    

1 changed file:

Changes:

  • toolkit/components/translations/TranslationsFeature.sys.mjs
    ... ... @@ -2,7 +2,7 @@
    2 2
      * License, v. 2.0. If a copy of the MPL was not distributed with this
    
    3 3
      * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    
    4 4
     
    
    5
    -import { AIFeature } from "chrome://global/content/ml/AIFeature.sys.mjs";
    
    5
    +// AIFeature.sys.mjs is not available. tor-browser#44780.
    
    6 6
     import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
    
    7 7
     
    
    8 8
     /**
    
    ... ... @@ -45,7 +45,10 @@ XPCOMUtils.defineLazyPreferenceGetter(
    45 45
     /**
    
    46 46
      * AIFeature implementation for translations.
    
    47 47
      */
    
    48
    -export class TranslationsFeature extends AIFeature {
    
    48
    +// NOTE: The AIFeature class is not available.
    
    49
    +// At the time of implementation, TranslationsFeature overwrites the entire
    
    50
    +// AIFeature class so we can drop the `extends AIFeature`. tor-browser#44780.
    
    51
    +export class TranslationsFeature {
    
    49 52
       /**
    
    50 53
        * Feature identifier for translations.
    
    51 54
        *
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx