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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-153.0esr-16.0-1] BB 44908: Do not read AutoConfig from /etc/firefox when --disable-system-preferences



Title: GitLab

brizental pushed to branch mullvad-browser-153.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 16c34621
    by Beatriz Rizental at 2026-07-28T11:19:42-03:00
    BB 44908: Do not read AutoConfig from /etc/firefox when --disable-system-preferences
    
    Uplifting: https://phabricator.services.mozilla.com/D314532
    

1 changed file:

Changes:

  • extensions/pref/autoconfig/src/nsReadConfig.cpp
    ... ... @@ -243,7 +243,7 @@ nsresult nsReadConfig::openAndEvaluateJSFile(const char* aFileName,
    243 243
       nsCOMPtr<nsIInputStream> inStr;
    
    244 244
       if (isBinDir) {
    
    245 245
         nsCOMPtr<nsIFile> jsFile;
    
    246
    -#if defined(MOZ_WIDGET_GTK)
    
    246
    +#if defined(MOZ_WIDGET_GTK) && defined(MOZ_SYSTEM_PREFERENCES)
    
    247 247
         bool exists;
    
    248 248
     
    
    249 249
         rv =
    
    ... ... @@ -257,15 +257,15 @@ nsresult nsReadConfig::openAndEvaluateJSFile(const char* aFileName,
    257 257
         if (NS_FAILED(rv)) return rv;
    
    258 258
     
    
    259 259
         if (!exists) {
    
    260
    -#endif  // defined(MOZ_WIDGET_GTK)
    
    260
    +#endif  // defined(MOZ_WIDGET_GTK) && defined(MOZ_SYSTEM_PREFERENCES)
    
    261 261
           rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(jsFile));
    
    262 262
           if (NS_FAILED(rv)) return rv;
    
    263 263
     
    
    264 264
           rv = jsFile->AppendNative(nsDependentCString(aFileName));
    
    265 265
           if (NS_FAILED(rv)) return rv;
    
    266
    -#if defined(MOZ_WIDGET_GTK)
    
    266
    +#if defined(MOZ_WIDGET_GTK) && defined(MOZ_SYSTEM_PREFERENCES)
    
    267 267
         }
    
    268
    -#endif  // defined(MOZ_WIDGET_GTK)
    
    268
    +#endif  // defined(MOZ_WIDGET_GTK) && defined(MOZ_SYSTEM_PREFERENCES)
    
    269 269
     
    
    270 270
         rv = NS_NewLocalFileInputStream(getter_AddRefs(inStr), jsFile);
    
    271 271
         if (NS_FAILED(rv)) return rv;
    

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