Closed Bug 2047633 Opened 2 months ago Closed 2 months ago

Add the possibility to set Firefox as the default pdf handler on Mac OS

Categories

(Firefox :: PDF Viewer, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: calixte, Assigned: calixte)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

It's already possible to do it on Windows and it can be done in about:pdf and we'd like to have the same feature on Mac OS.
According to :hsohaney, we could use:
https://developer.apple.com/documentation/appkit/nsworkspace/setdefaultapplication(at:toopencontenttypeoffileat:completion:)

Flags: needinfo?(hsohaney)
Flags: needinfo?(hsohaney)

On macOS this goes through NSWorkspace's setDefaultApplication API (macOS 12+) and resolves once the OS consent prompt completes. Adds the supporting isDefaultHandlerFor and canSetAsDefaultPDFHandler members and records the set_default_pdf_handler_attempt telemetry on macOS.

Enable the about:pdf set-as-default-PDF-handler promo on macOS and hide it once Firefox becomes the default.

Pushed by cdenizet@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5e060f1e011e https://hg.mozilla.org/integration/autoland/rev/3a57fc5aab45 Add macOS support to ShellService.setAsDefaultPDFHandler via NSWorkspace. r=hsohaney,iholmes https://github.com/mozilla-firefox/firefox/commit/1c2424e9bf64 https://hg.mozilla.org/integration/autoland/rev/65df739287cb Offer setting Firefox as the default PDF handler from about:pdf on macOS. r=iholmes
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

:calixte did you want to include this in the 154 release notes? Please nominate if so

Flags: needinfo?(cdenizet)
Blocks: 2051318
QA Whiteboard: [qa-triage-done-c155/b154][qa-ver-needed-c155/b154]
Flags: qe-verify+
Flags: needinfo?(cdenizet)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: