Closed Bug 1660277 Opened 4 years ago Closed 4 years ago

We switch users away from PDF.js as the default viewer if the user ever picks something else in the "open file with" dialog

Categories

(Firefox :: File Handling, defect, P1)

defect

Tracking

()

VERIFIED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- unaffected
firefox81 + verified
firefox82 + verified

People

(Reporter: Gijs, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. open Firefox on a clean profile
  2. open the options/prefs, search for PDF. Check it defaults to "Open with Firefox"
  3. open a content-disposition attachment pdf, e.g. https://www.seattlesymphony.org/~/media/files/notes/schubert-sonata-21-b-flat.pdf
  4. pick anything other than "open in nightly/Firefox". Do not tick "do not ask me again"
  5. reload the options, search for PDF again

ER:
it should stay "open with firefox"

AR:
it becomes "always ask"

This is bad, because then even inline PDFs don't get displayed inline anymore.

Pretty sure this is a regression.

These steps regressed a week ago on Nightly, from bug 1653117.

The reports in bug 1655974 about defaults becoming "always ask" are from ESR or release, and so I'm worried there's some other STR that I'm missing here.

Jared, do you have cycles to help investigate?

Flags: needinfo?(jaws)
Regressed by: 1653117
Has Regression Range: --- → yes

Set release status flags based on info from the regressing bug 1653117

I might have cycles today/Monday, but there are a few others bugs that I'm trying to chase down while also getting more things in for 81. If you have some time that would be great but I know you're super busy too.

Flags: needinfo?(jaws)

(intentionally cleared and re-set needinfo so you would get mail that I responded)

Flags: needinfo?(jaws)

Hi Gijs, can you please (let) triage this?

Flags: needinfo?(gijskruitbosch+bugs)
See Also: → 1661432

I moved the investigation into bug 1661432. Here, let's "just" fix the regression.

Assignee: nobody → gijskruitbosch+bugs
Severity: -- → S2
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)
Flags: needinfo?(gijskruitbosch+bugs)
Priority: -- → P1
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/605317e5db8a
adjust when we save per-filetype download preferences in the helper app dialog for types handled internally, r=jaws
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9172819 [details]
Bug 1660277 - adjust when we save per-filetype download preferences in the helper app dialog for types handled internally, r?jaws

Beta/Release Uplift Approval Request

  • User impact if declined: People have terrible PDF experiences
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment #0
  • List of other uplifts needed: n/a
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively small change in this #$&^$*2$# dialog. Comes with more automated tests.
  • String changes made/needed: None
Attachment #9172819 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9172819 [details]
Bug 1660277 - adjust when we save per-filetype download preferences in the helper app dialog for types handled internally, r?jaws

Ouch. Approved for 81.0b5.

Attachment #9172819 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9172819 [details]
Bug 1660277 - adjust when we save per-filetype download preferences in the helper app dialog for types handled internally, r?jaws

Actually, this needs a rebased patch (Beta doesn't know what IOUtils is)

Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9172819 - Flags: approval-mozilla-beta+

Comment on attachment 9172819 [details]
Bug 1660277 - adjust when we save per-filetype download preferences in the helper app dialog for types handled internally, r?jaws

We figured it out. This needs bug 1660015 to make ESLint happy. Re-approving!

Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9172819 - Flags: approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Reproduced the initial issue reported here using an old Nightly (2020-08-20), verified that this is fixed using Firefox 81.0b7 and Latest Nightly 82.0a1 across platforms (Windows 10 64bit, macOS 10.15, Ubuntu 18.04 64bit).

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Brendan, can you think of any reasonable way we can restore settings for beta/nightly users without clobbering them for people who have deliberately changed them? I assume not, but I figured I'd ask...

Flags: needinfo?(bdahl)

Unfortunately, I don't see another way. I looked around a bit hoping there was some way that the mime type handler settings were changed in a way we could detect when the bug was present, but I'm not seeing anything.

Flags: needinfo?(bdahl)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: