Closed Bug 1601450 Opened 6 years ago Closed 6 years ago

Select location bar plus type while in about:config no longer deletes location bar contents

Categories

(Firefox :: Address Bar, defect, P1)

73 Branch
defect
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 73
Tracking Status
firefox-esr68 --- unaffected
firefox71 --- unaffected
firefox72 --- unaffected
firefox73 --- fixed

People

(Reporter: tracy, Assigned: mak)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [iris])

Attachments

(1 file)

This is a regression in Firefox Nightly in recent builds as early as 4:46 PST 20191204. Iris Nighty build validation revealed this first in https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&tier=1%2C2%2C3&revision=13fb375eaf14bd9fae5c607aa60015d2b3bd0f2d&searchStr=iris%2Cnightly-linux64-shippable%2Fopt&selectedJob=279610716 Subsequent test runs have failed.

Steps to reproduce:

  1. Open about:config
  2. Select the location bar with keyboard shortcut (cmd or ctrl + l)
  3. type a few letters

Tested results:
about:config is left in the location bar with whatever you typed following it

Expected results:
typing should have overwritten the about:config text

Try the same in location bar with a url present and you get correct results. I expect the location bar shouldn't act any differently if we're in aboutconfig.

almost surely bug 1593964

Points: --- → 2
Priority: -- → P1
Regressed by: 1593964
Has Regression Range: --- → yes

This occurs in any about: page that keeps about:<page> in the location bar; ie about:about, about:crashes, about:library etc.

I've found this is reproducible outside of about:config with specific steps to reproduce as follows.

  1. Put an "m" into your clipboard
  2. Open a new tab (the location bar should be selected)
  3. Paste the "m"
  4. use keyboard shortcut to select the location bar
    -- notice an item from suggestions list is auto-completed in the location bar with the auto-completed part selected but not the initial "m"
  5. Paste the "m" again.

Tested results:
"mm" in the location bar.

Expected results:
Just one "m" in the location bar.

If you replace the initial paste of an "m" into the location bar with typing an "m", the rest of the test steps produce expected behavior.

yeah, we are activating retained results when the shortcut is used, because the string is the same as the last search.
It's interesting that pasting an "m" brings up different results than typing an "m", likely it's due to allowAutofill being false on paste.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Blocks: 1602812

If the user types a full url, confirms it, and then focuses the urlbar, we should
not

When focusing the address bar after typing and confirming a page, we end up reopening
the view because the search string is the same. This causes unexpected noise and
selection problems (the url is not selected anymore).
This patch changes the behavior so we don't reopen on valid pageproxystate, that
seems to make sense considering the feature scope of restoring an abandoned search.

Additionally, make the keyboard shortcut not trying to reopen the view if it's
already open, to avoid messing up with the selection.

Finally, restore the appropriate allowAutofill status from the last context.
This may still cause us to not autofill something that was previously autofilled,
if 2 tabs contain the same exact search, but that's an edge case, so acceptable.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
QA Whiteboard: [qa-73b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: