Closed Bug 1762100 Opened 3 years ago Closed 3 years ago

Make Windows show PDF files that will open with Firefox as "Firefox PDF Document"

Categories

(Firefox :: Installer, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
100 Branch

People

(Reporter: nalexander, Assigned: nalexander)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [fidedi-pdf])

Attachments

(4 files)

This ticket tracks changing the file type that gets displayed by Windows for PDF files that will open with Firefox from the current “Firefox HTML Document” to “Firefox PDF Document”.

Technically, I think this is straightforward: we duplicate FirefoxHTML-... to FirefoxPDF-..., bump the string, and use it for .pdf.

No longer blocks: 1761504
No longer depends on: 1761389
Group: mozilla-employee-confidential
Whiteboard: [fidedi-pdf]

This anticipates separating the FirefoxPDF-... handler from the
FirefoxHTML-... handler.

This is simply the mechanics of s/FirefoxHTML-.../FirefoxPDF-.../. We
need this to alter the description ("Firefox PDF Document") and, in
subsequent commits, the display icon.

Generally I tried to keep alphabetical ordering: FirefoxHTML-...,
FirefoxPDF-..., FirefoxURL-...; and I generally tried to use the '-'
suffix to disambiguate the older FirefoxHTML from the newer suffixed
FirefoxHTML-... form.

This does two things. First, it expects the special
FirefoxPDF-... ProgID to be available for UserChoice. We could manage
without it for a while, but eventually we expect set-to-default to
include PDFs. When that is the case, if it doesn't exist, something
has gone very wrong, and we'd like to find that out (via our existing
telemetry, which reports "missing" ProgIDs).

Second, it arranges to use the new FirefoxPDF-... ProgID when
setting-to-default.

In addition, this makes the other file associations have a non-default
description, like "Firefox HTML Document", which agrees (at least for
Release and Beta) with what the installer arranges. (The Windows
default description is otherwise "HTML Document", "PDF Document",
etc.)

Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/202beaf50315 Part 1: Accommodate arbitrary ProgID roots in `set-default-browser-user-choice`. r=bhearsum https://hg.mozilla.org/integration/autoland/rev/5825ad8cb2be Part 2: Add and use `FirefoxPDF-...` file association. r=bhearsum https://hg.mozilla.org/integration/autoland/rev/4f5619be4f9c Part 3: Expect and use `FirefoxPDF-...`. r=bhearsum https://hg.mozilla.org/integration/autoland/rev/cd0595cee3e0 Part 4: Make MSIX have PDF-specific document description. r=bhearsum
Regressions: 1762172

Backed out changeset cd0595cee3e0 (Bug 1762100) for breaking msi repacks (Bug 1762172).
Backout link: https://hg.mozilla.org/integration/autoland/rev/83067e174c350e4980368ea1bb9281e066b12927

Status: RESOLVED → REOPENED
Flags: needinfo?(nalexander)
Resolution: FIXED → ---

(In reply to Marian-Vasile Laza from comment #7)

Backed out changeset cd0595cee3e0 (Bug 1762100) for breaking msi repacks (Bug 1762172).
Backout link: https://hg.mozilla.org/integration/autoland/rev/83067e174c350e4980368ea1bb9281e066b12927

I'm going to leave this as RESO FIXED, and spin out the corresponding MSIX change to a separate ticket. Thanks!

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Flags: needinfo?(nalexander)
Resolution: --- → FIXED
Regressions: 1763824
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: