Open Bug 1854584 Opened 2 years ago Updated 1 year ago

Result of arithmetic expression leads you to search page containing "="

Categories

(Firefox :: Address Bar, defect, P3)

Firefox 117
x86_64
macOS
defect

Tracking

()

People

(Reporter: mseibert, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: parity-chrome, parity-edge, Whiteboard: [sng-scrubbed][search-parity])

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

  1. Enter "5+5" in the addressbar.
  2. Click on the result "= 10".
  3. Get redirected to search engine with either full "artihmetic expression e.g. 5+5" or result "10" (without '=').

Actual:

You get redirected to the search engine with the result and the '=' e.g. "= 10".

Recommendation:

I think for the customer/user it would be best to redirect to the search result containing the original query. Search providers like Google, Bing and DuckDuckGo even provide a calculator UI. Usually searching for a result of a mathematical expression doesn't lead to anything useful.

Turns out the result is not from our UrlbarProviderCalculator.sys.mjs but rather a Search Engine result. Would be nice to have a calculator result that redirects to the search engine when clicked on.

We should be detecting the special case of a remote search suggestion starting with "=". We looked at what Chrome is doing, which seems like a reasonable approach.

Severity: -- → S4
Priority: -- → P3
Whiteboard: [sng-scrubbed][search-parity]
Blocks: 1784511
You need to log in before you can comment on or make changes to this bug.