Commit 572ec37e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by morgan
Browse files

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.
parent 21d6cfe7
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -29,7 +29,14 @@ export class AboutPDFParent extends JSWindowActorParent {
  }

  #canSetDefaultPDFHandler() {
    if (!ShellService || AppConstants.platform != "win") {
    const xreDirProvider = Cc[
      "@mozilla.org/xre/directory-provider;1"
    ].getService(Ci.nsIXREDirProvider);
    if (
      !ShellService ||
      AppConstants.platform != "win" ||
      xreDirProvider.isPortableMode
    ) {
      return false;
    }