Open Bug 1657460 Opened 4 years ago Updated 9 months ago

Checkbox indicating "open in Firefox" is the default for opening PDFs should be ticked

Categories

(Firefox :: File Handling, defect, P3)

79 Branch
defect

Tracking

()

People

(Reporter: zeid, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

When I open a PDF file in Firefox (i.e. by selecting "Open with Firefox") and checking "Do this automatically for files like this from now on", the setting appears to have been saved in the preferences, but I still get the same dialog asking me the same thing the next time I open a file. This persists even upon restarting Firefox.

Using Firefox 79.0 (64-bit) on macOS Catalina 10.15.5.

OS: Unspecified → macOS
Hardware: Unspecified → x86_64

Can you check the headers for the PDF in question, and see if they include content-disposition: attachment ? If so, this is a duplicate of bug 453455. See bug 453455 comment 22 for why resolving this isn't trivial.

Flags: needinfo?(zeid)
Component: PDF Viewer → File Handling

(In reply to :Gijs (he/him) from comment #1)

Can you check the headers for the PDF in question, and see if they include content-disposition: attachment ? If so, this is a duplicate of bug 453455. See bug 453455 comment 22 for why resolving this isn't trivial.

The response header of the download request does indeed include content-disposition: attachment. I'm not sure this would be a duplicate of bug 453455, but perhaps very related to bug 470332. Given that "Open with Firefox" is new behaviour, this may be a different manifestation of a similar bug.

Re-testing this now, it seems like this is the behaviour:

  • If you open a PDF with Firefox, and check off "Do this automatically ... from now on" then the next time you open an attachment, the checkbox is unchecked and "Open with Firefox" is selected. The Applications settings show "Open in Firefox" for PDFs.
  • If you open a PDF and choose a different application (e.g. Preview or Textedit) and check off "Do this automatically ... from now on" then the next time you open an attachment, the checkbox is checked, and the correct application is selected.

Therefore, the behaviour is a little inconsistent. I'd say that given the limitations, I would expect the checkbox to save the behaviour to not be present since it's not really doing anything, but specifically the fact that it does not remain checked only when you select "Open with Firefox" feels buggy.

Flags: needinfo?(zeid)

The severity field is not set for this bug.
:Gijs, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(gijskruitbosch+bugs)

(In reply to Zeid Zabaneh [:zeid] from comment #2)

I would expect the checkbox to save the behaviour to not be present since it's not really doing anything,

It does something if you select "save file". It'd be weird to hide/show the checkbox depending on the radio selection, or to try to disable it and save/restore checked state or something.

Ultimately, this dialog is awful and I don't think there's any real way to improve it beyond burning it with fire and getting rid of it completely.

but specifically the fact that it does not remain checked only when you select "Open with Firefox" feels buggy.

I'll morph this to be about this issue, I guess. Making the dialog not show up is covered elsewhere.

Severity: -- → S3
Flags: needinfo?(gijskruitbosch+bugs)
OS: macOS → All
Priority: -- → P3
Hardware: x86_64 → All
Summary: Selecting Firefox as default for opening PDFs does not work → Checkbox indicating "open in Firefox" is the default for opening PDFs should be ticked
Attachment #9386054 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: