Closed Bug 1729543 Opened 3 years ago Closed 3 years ago

Allow restriction characters/tokens in the middle of the search string

Categories

(Firefox :: Address Bar, enhancement, P5)

Firefox 92
enhancement

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox92 --- affected
firefox93 --- affected
firefox94 --- affected

People

(Reporter: prasanuv, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0

Steps to reproduce:

Note: I'm referencing the following article w.r.t. restricting urlbar suggestions:
https://support.mozilla.org/en-US/kb/address-bar-autocomplete-firefox#w_changing-results-on-the-fly

Type "abc ? def" in urlbar.

Actual results:

Urlbar suggestions are NOT restricted to just searches.

Expected results:

Urlbar suggestions should be restricted to just searches.

Previously, typing "abc ? def" used to have the same behavior as "abc def ?", which IMO seems much more intuitive - I'd expect the user frequently wanting to tighten their searches by adding more words at the end. But current behavior seems to be that the "?" functionality breaks if there's anything typed after it.

Component: Untriaged → Search
Component: Search → Address Bar

Hi,

I was able to replicate this creating a bookmark named "abc ? def", and then typing "abc ? def" in urlbar.
It will give me search suggestions and also show a line for the bookmark with the star icon.

Is that the correct way to reproduce the bug? or perhaps you can share some screenshots of what is showing up incorrecly in your machine?

Replicated in Windows 10 64bit, Mac 10.15 and Ubuntu, using Firefox 93.0b2 beta, nightly 94.0a1 and release 92.0

Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(prasanuv)
Attached image History matches (deleted) —
Flags: needinfo?(prasanuv)

Is that the correct way to reproduce the bug? or perhaps you can share some screenshots of what is showing up incorrecly in your machine?
Yes, this is the correct way to reproduce it. In addition, if there're any history matches like I do in the attached screenshot, those also incorrectly show up when I type "abc ? def".

This was a deliberate change in bug 1538050 as a fix to allow bookmark keywords to end with ?. We may want to revisit that decision, so I'll leave this open.

Type: defect → enhancement
Depends on: 1538050
Priority: -- → P5
Summary: Inconsistent behavior with urlbar suggestions w.r.t. "changing results on the fly" → Allow restriction characters/tokens in the middle of the search string

I think it only adds confusion, we may have a bug (or maybe we just discussed that?) about allowing restriction tokens to be typed only at the beginning of the string. There's too many edge cases where having a token in the middle or at the end of the string breaks something.
And with Search mode it makes a lot less sense and breaks coherence of the UI.
I'd be prone to WONTFIX.

Flags: needinfo?(adw)

I agree.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(adw)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: