[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] fixup! BB 9173: Change the default Firefox profile directory to be relative.



Title: GitLab

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

Commits:

  • 88be53ba
    by Pier Angelo Vendrame at 2026-07-28T13:34:27+00:00
    fixup! BB 9173: Change the default Firefox profile directory to be relative.
    
    BB 45074: Do not promote Tor Browser as a PDF viewer.
    
    This functionality does not work when in portable mode.
    

1 changed file:

Changes:

  • toolkit/actors/AboutPDFParent.sys.mjs
    ... ... @@ -29,7 +29,14 @@ export class AboutPDFParent extends JSWindowActorParent {
    29 29
       }
    
    30 30
     
    
    31 31
       #canSetDefaultPDFHandler() {
    
    32
    -    if (!ShellService || AppConstants.platform != "win") {
    
    32
    +    const xreDirProvider = Cc[
    
    33
    +      "@mozilla.org/xre/directory-provider;1"
    
    34
    +    ].getService(Ci.nsIXREDirProvider);
    
    35
    +    if (
    
    36
    +      !ShellService ||
    
    37
    +      AppConstants.platform != "win" ||
    
    38
    +      xreDirProvider.isPortableMode
    
    39
    +    ) {
    
    33 40
           return false;
    
    34 41
         }
    
    35 42
     
    

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