Closed Bug 1535080 Opened 6 years ago Closed 6 years ago

File picker for selecting default handler application for protocol scheme (e.g. mailto:) not opening/broken in Options/Preferences > General > Applications > "Use other..."

Categories

(Firefox :: Settings UI, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 68
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- unaffected
firefox66 --- unaffected
firefox67 --- verified
firefox68 --- verified

People

(Reporter: aryx, Assigned: jallmann)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [qa-triaged])

Attachments

(1 file)

[Tracking Requested - why for this release]:
Broken preferences feature (regression)

Firefox Nightly 67.0a1 20190313100914 on Windows 8.1

The file picker for selecting the default handler application for a protocol scheme (e.g. mailto:" doesn't open when one clicks "Use other..." from the dropdown for a protocol and then on "Browse".

Steps to reproduce:

  1. Open Options/Preferences > General > Applications
  2. For mailto, open the dropdown and click on "Use other..."
  3. Click on "Browse..."

Actual result:
Nothing happens.

Expected result:
File picker opened.

Jonas, can you take care of this? It's from bug 1525636.

Flags: needinfo?(jallmann)
Product: Toolkit → Firefox
Assignee: nobody → jallmann
Flags: needinfo?(jallmann)

I would have liked to fix this, but I just noticed this appears to be a Windows only issue, and I'm working on Linux, so I can't reproduce it.

Assignee: jallmann → nobody
Flags: needinfo?(aryx.bugmail)

The addEventListener is not reached (more info in bug 1535087). Putting at the start of the method fixes it.

How can this be tested? Selecting the dropdown for mailto triggers the favicons for the web protocol handlers to be fetched which causes a FATAL ERROR for the non-local connection and overwriting gecko.handlerService.schemes.mailto.* doesn't fix it because these prefs only get read when the profile gets created.

Gijs, any suggestions on that? Thank you.

Flags: needinfo?(aryx.bugmail) → needinfo?(gijskruitbosch+bugs)

(In reply to Sebastian Hengst [:aryx] (needinfo on intermittent or backout) from comment #2)

How can this be tested? Selecting the dropdown for mailto triggers the favicons for the web protocol handlers to be fetched which causes a FATAL ERROR for the non-local connection and overwriting gecko.handlerService.schemes.mailto.* doesn't fix it because these prefs only get read when the profile gets created.

Gijs, any suggestions on that? Thank you.

See the code at the top of https://searchfox.org/mozilla-central/source/browser/components/preferences/in-content/tests/browser_applications_selection.js

It's probably easiest to add a test to that file.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(aryx.bugmail)

Is comment 2 to comment 4 enough information to put together a patch for this, Jonas?

Flags: needinfo?(jallmann)

This is a recent regression and it's tracking 67 -> P1.

Jonas, if you can't take this (see comment #5) please let us know ASAP, and ideally try to find another owner.

Priority: -- → P1

The short term fix is to move the addEventListener up, see comment 2. Can look more into it after today.

Move addEventhandler to top of appPickerLoad() to avoid not reaching it when errors occur later in the function.

This really just moves the addEventhandler(), as suggested by aryx.
I haven't looked into the test situation, that would take me a little longer to get familiar with.

Flags: needinfo?(jallmann)
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/dca8a22066e8 Fix file picker not opening on Windows, r=Gijs
Assignee: nobody → jallmann
Status: NEW → ASSIGNED

We should probably consider still adding a test for this behavior.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

Hi Jonas, since 67 is marked as affected, should we consider uplifting this to Beta67? If yes, please nominate a patch for uplift.

Flags: needinfo?(jallmann)

(In reply to Ritu Kothari (:ritu) from comment #13)

Hi Jonas, since 67 is marked as affected, should we consider uplifting this to Beta67? If yes, please nominate a patch for uplift.

Gijs, Jonas currently works only one day a week and i am not sure I know the answer. Do you think we need to uplift that change?

Flags: needinfo?(gijskruitbosch+bugs)

Comment on attachment 9053524 [details]
Bug 1535080, Fix file picker not opening on Windows, r=gijs

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: Bug 1525636
  • User impact if declined: Broken dialog in the prefs
  • Is this code covered by automated tests?: No
  • 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): Moving an event listener so it still gets added if the function it's in returns early - 1 line of JS being moved around - is not risky.
  • String changes made/needed: Nope
Flags: needinfo?(jallmann)
Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9053524 - Flags: approval-mozilla-beta?
Flags: qe-verify?
Flags: qe-verify? → qe-verify+

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Build ID: 20190402083512

Verified as fixed using the latest Nightly build. The file picker now opens when the "Browse" button is selected.

Whiteboard: [qa-triaged]
No longer blocks: 1525636
Has Regression Range: --- → yes
Has STR: --- → yes
Regressed by: 1525636

Comment on attachment 9053524 [details]
Bug 1535080, Fix file picker not opening on Windows, r=gijs

Low risk fix for a 67 regression, uplift accepted for 67 beta 8, thanks.

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

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Build ID: 20190404130536

Verified as fixed using the latest DevEdition (67.0b8) build. The file picker opens when the "Browse" button is selected.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: