Closed Bug 1554158 Opened 6 years ago Closed 5 years ago

'Choose Download Folder' window is displayed again after changing the download folder and navigating to a different page using enter in the location bar (enter keypress leaks to content from the location bar)

Categories

(Firefox :: Address Bar, defect, P1)

68 Branch
All
Windows 10
defect
Points:
3

Tracking

()

VERIFIED FIXED
Firefox 68
Iteration:
69.3 - Jun 10 - 23
Tracking Status
firefox-esr60 --- unaffected
firefox67 --- unaffected
firefox68 --- verified
firefox69 --- verified

People

(Reporter: arus, Assigned: dao)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [iris])

Attachments

(1 file)

Steps to reproduce:

  1. Launch Firefox with a new profile.
  2. Navigate to about: preferences.
  3. Type 'downloads' in 'Find in Options'.
  4. Make sure 'Save files to' is checked.
  5. Click on 'Browse...'
  6. Click on 'New folder'.
  7. Type the name for the new folder and hit Enter.
  8. Tap on 'Select folder'.
  9. From the same window tab, Navigate to 'https://www.thinkbroadband.com/download' page.

Expected results:
https://www.thinkbroadband.com/download page is loaded.

Actual results:
'Choose Download Folder' window is displayed again with https://www.thinkbroadband.com/download page loaded in the background.

Notes:

  1. Please note that this is reproducible only when you navigate inside the same tab you've done the changes on downloads folder.

Hi Alin,

I assume there's a missing step here, where you have to initiate a download from the https://www.thinkbroadband.com/download page to get the download dialog to appear. Is that correct?

Flags: needinfo?(arus)

Hi Mike,

You don't have to download some files before, just make sure that after changing the downloads folder, you navigate inside the same tab to a different site, doesn't matter if is https://www.thinkbroadband.com/download .

Flags: needinfo?(arus)

I reproduced on Windows in beta. The 'enter' keypress in the location bar when trying to navigate somehow also makes it way to the preferences content in the page and activates the "browse" button again.

(Note: in future, please be specific about how you navigate to a page... if you use a bookmark or your mouse, I don't think this will reproduce)

Alin, how confident are you that this doesn't reproduce on 67? Can you find a regression window?

Flags: needinfo?(arus)
Summary: 'Choose Download Folder' window is displayed again after changing the download folder and navigating to a different page → 'Choose Download Folder' window is displayed again after changing the download folder and navigating to a different page using enter in the location bar

Hi guys,

Using Mozregression, I've got this:

2019-06-04T16:36:35: INFO : Narrowed inbound regression window from [38a326f8, a8fcad58] (6 builds) to [d1f9cf74, a8fcad58] (2 builds) (~1 steps left)
2019-06-04T16:36:35: DEBUG : Starting merge handling...
2019-06-04T16:36:35: DEBUG : Using url: https://hg.mozilla.org/integration/autoland/json-pushes?changeset=a8fcad5870bad1bc7d9b355e2b3348753f7385c7&full=1
2019-06-04T16:36:36: DEBUG : Found commit message:
Bug 1548031 - Enable the QuantumBar on Nightly and early Beta. r=adw

Differential Revision: https://phabricator.services.mozilla.com/D29538

2019-06-04T16:36:36: DEBUG : Did not find a branch, checking all integration branches
2019-06-04T16:36:36: INFO : The bisection is done.
2019-06-04T16:36:36: INFO : Stopped

pushlog_url:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=38a326f813f6b1fd1400d215730e0105f62eb9c5&tochange=5cd3bf5c4248c420ffd083f9d1542f4f74963b84

Flags: needinfo?(arus)

Alright, seems that the location bar used to swallow the 'enter' keypress and the quantumbar implementation doesn't do this. Hopefully that's easy to fix. Mike/Drew, can you help prio this? Thanks.

Component: Preferences → Address Bar
Flags: needinfo?(mdeboer)
Flags: needinfo?(adw)
Keywords: regression
Regressed by: 1548031
Summary: 'Choose Download Folder' window is displayed again after changing the download folder and navigating to a different page using enter in the location bar → 'Choose Download Folder' window is displayed again after changing the download folder and navigating to a different page using enter in the location bar (enter keypress leaks to content from the location bar)
Flags: needinfo?(mdeboer)
Flags: needinfo?(adw)
Priority: -- → P2
Regressed by: quantumbar-input
No longer regressed by: quantumbar-input
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Iteration: --- → 69.2 - May 27 - Jun 9
Points: --- → 2
Priority: P2 → P1
Points: 2 → 3
Flags: in-testsuite?

I think this only reproduces with content running in the chrome process. There seem to be two factors to this, the first being whether we consume the key event (i.e. call preventDefault), the second being when we move focus to the content area. I don't see the legacy code consuming the event, so I suspect we move focus earlier. I don't see downsides to just always consuming the event, so I'm going to approach this bug this way.

Iteration: 69.2 - May 27 - Jun 9 → 69.3 - Jun 10 - 23
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e388d4237d0 Always consume the enter key in UrlbarInput. r=mak
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Flags: qe-verify+

Comment on attachment 9070774 [details]
Bug 1554158 - Always consume the enter key in UrlbarInput. r=Standard8

Beta/Release Uplift Approval Request

  • User impact if declined: see comment 0 (only affects content loaded in the parent process, such as about:preferences)
  • 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. (I want to look into writing an automated test but think we should uplift this in the meantime.)
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Always consuming the enter key event in the location bar should be fairly safe, I can't think of possible downsides... (famous last words.)
  • String changes made/needed:
Attachment #9070774 - Flags: approval-mozilla-beta?

Comment on attachment 9070774 [details]
Bug 1554158 - Always consume the enter key in UrlbarInput. r=Standard8

fingers crossed, eh? approved for 68.0b10

Attachment #9070774 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Verified - Fixed on latest Beta 68.0b10 (64-bit) and Nightly 69.0a1 (2019-06-12) on Windows 10 x64.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Regressions: 1610200
No longer regressions: 1610200
Regressions: 1610200
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: