Closed Bug 1790506 Opened 2 years ago Closed 2 years ago

Open PDF in firefox is downloading the PDF instead of opening in browser when using "always ask me what to do with this file"

Categories

(Firefox :: Downloads Panel, defect)

Firefox 104
defect

Tracking

()

RESOLVED DUPLICATE of bug 1762955

People

(Reporter: carloscinelli, Unassigned)

Details

Steps to reproduce:

  1. Set PDF options to "always ask"
  2. Try to open the file with "open with firefox"

Actual results:

This will automatically save the file in the "downloads folder."

Expected results:

"Open with firefox" should open the file in the browser, and not download it.

Group: firefox-core-security

The Bugbug bot thinks this bug should belong to the 'Firefox::Downloads Panel' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Downloads Panel

If you set PDF to always ask it won't open in the internal viewer but it will ask to download, why not setting it to Open in Nightly? Then you can use the download button on the viewer to download if you wish to keep it.
As you tried to setup, it will end up in a dialog loop where firefox asks, you tell to open with firefox, firefox asks, and so on... that loop is cut short just downloading to avoid the problem.
If you don't want to keep the files by default, there is a browser.download.start_downloads_in_tmp_dir option in about:config, though we think the default behavior is less likely to cause issues and dataloss.
Does this help?

Flags: needinfo?(carloscinelli)

(In reply to Marco Bonardo [:mak] from comment #2)

If you set PDF to always ask it won't open in the internal viewer but it will ask to download, why not setting it to Open in Nightly? Then you can use the download button on the viewer to download if you wish to keep it.
As you tried to setup, it will end up in a dialog loop where firefox asks, you tell to open with firefox, firefox asks, and so on... that loop is cut short just downloading to avoid the problem.
If you don't want to keep the files by default, there is a browser.download.start_downloads_in_tmp_dir option in about:config, though we think the default behavior is less likely to cause issues and dataloss.
Does this help?

It doesn't help, because this behavior is inconsistent.

When in settings "action" is set to "open in firefox", firefox will open the pdf in the browser without downloading. If, however, we change the "action" settings to "always ask" then when the dialog box shows up and one selects "open in firefox", then firefox downloads the file. This is inconsistent behavior.

Flags: needinfo?(carloscinelli)

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(mak)

(In reply to carloscinelli from comment #3)

When in settings "action" is set to "open in firefox", firefox will open the pdf in the browser without downloading. If, however, we change the "action" settings to "always ask" then when the dialog box shows up and one selects "open in firefox", then firefox downloads the file. This is inconsistent behavior.

This is not easily fixable. There is a lot more context in bug 1762955.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mak)
Resolution: --- → DUPLICATE
Summary: Open PDF in firefox is downloading the PDF instead of opening in browser → Open PDF in firefox is downloading the PDF instead of opening in browser when using "always ask me what to do with this file"
You need to log in before you can comment on or make changes to this bug.