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
1 changed file:
Changes:
| ... | ... | @@ -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 |