Closed Bug 1562421 Opened 7 years ago Closed 7 years ago

Leading plus sign is ignored when searching from the address bar

Categories

(Firefox :: Address Bar, defect, P3)

69 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1560228
Tracking Status
firefox67 --- affected
firefox68 --- affected
firefox69 --- affected

People

(Reporter: giul.mus, Unassigned)

References

Details

To reproduce, type "+hello" in the address bar.

One of the options will be "hello ⁠— Search with $engine"; note that the leading plus sign is ignored. Indeed, if the option is selected it will search for "hello". Only the first plus sign is ignored, as typing "+++hello" will give an option for "++hello".

This does not occur for the search suggestions at the bottom of the list of options, nor for the search bar that is separate from the address bar.

yes, we ignore some chars at the beginning because those are special and can be used to limit results to a specific subset. What's your use case for that?

The specific query with which I ran into this issue was searching for a phone number in international format, eg. +1-202-555-0122. I know I can search for that with Ctrl+K or quotation marks, it's just that this specific behaviour is unexpected (and I think most users would feel like that).

I'm not convinced about the thing with special characters. This issue does not occur with the minus character, which is used in many search engines to exclude words, but it occurs with eg. the plus and the percent sign, which to my knowledge are not meaningful operators in Google Search.

we should better detect math and phone numbers indeed. In the future we'll evaluate better systems than special chars.

Severity: minor → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
See Also: → 1560228

let's just dupe to bug 1560228, we'll only strip a leading ?, nothing else.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.