Open Bug 1648956 Opened 4 years ago Updated 4 years ago

URLs with a space and ending in a question mark are repointed to search

Categories

(Firefox :: Address Bar, defect, P3)

77 Branch
defect

Tracking

()

People

(Reporter: docorbit, Unassigned)

Details

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

Steps to reproduce:

  1. Set up browser for separate address field and search engine field
  2. In the address field, type the URL https://en.wikipedia.org/wiki/Why Should I Love You?
  3. Press enter

Attempted workaround:

  1. In the address field, type the URL https://en.wikipedia.org/wiki/Why Should I Love You?
  2. Press up arrow key
  3. Press Enter

Actual results:

  1. URL opens as search string in my preferred search engine
  2. Search preferences open

Expected results:

  1. Requested URL opens at Wikipedia
  2. Requested URL opens at Wikipedia

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Search

Correction:

Expected results:

  1. Requested URL opens at Wikipedia
  2. Requested URL opens at Wikipedia

(Sorry, Bugzilla changes the 6 to a 4. Correction:)

  1. Requested URL opens at Wikipedia.

Re-correcting:

Actual results:

3 URL opens as search string in my preferred search engine
6 Search preferences open

Expected results:

3 Requested URL opens at Wikipedia
6 Requested URL opens at Wikipedia

Component: Search → Address Bar

Spaces in the path should always be encoded, and searching Wikipedia can be done more easily through its dedicated search engine. But the fact the url starts with a valid scheme must be considered.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

Well, yes, and the ? gets encoded as %3F as well. But this would best be handled by the browser, not the user, as it is technical and not something the average user would understand. Presumably that is a separate bug, however. In the case of this bug, it is specifically triggered by the presence of both a space and a question mark. The space alone or question mark alone does not trigger the bug.

Also noting the following in the preference pane:

Search Bar
Use the address bar for search and navigation
Add search bar in toolbar

If I've chosen Add search bar in toolbar (which sets browser.search.widget.inNavBar to true), I would expect it not to use the address bar for search and navigation. That is, I would expect it to no longer be awesome.

The Address Bar functionality doesn't depend on Search Bar preferences, and we don't plan to change that.

You need to log in before you can comment on or make changes to this bug.