Commit ae33eb9a authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
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 9c8f1e97
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;
    }