Open Bug 1807731 Opened 2 years ago Updated 8 months ago

Search shortcuts should treat URLs as simple search strings, just like desktop Firefox

Categories

(Fenix :: Search, enhancement)

All
Android
enhancement

Tracking

(Not tracked)

People

(Reporter: cpeterson, Unassigned)

Details

From github: https://github.com/mozilla-mobile/fenix/issues/12663.

Steps to reproduce

  1. Tap on address bar. It says "Search or enter address".
  2. Select the (for example) Wikipedia shortcut under "This time, search with:". Address bar still says "Search or enter address". (This string, "This time, search with:", is what tells me this feature is intended to be the same as the one in desktop Firefox, which has the exact same string.)
  3. Enter a search string that is a URL (or Firefox thinks is a URL), such as "x.org", or "x.509" which are valid Wikipedia page URLs.
  4. Fenix tries to open them as URLs, ignoring the search shortcut selection.

Expected behavior

If you select a search engine, Fenix should execute a search on it, just like desktop Firefox.
What should ideally happen is:

  1. Tap on the address bar.
  2. Enter a string to search for.
  3. Tap on Wikipedia.
  4. Fenix should immediately send that string to Wikipedia.

OR

Since you've specifically selected the Wikipedia search shortcut, no matter the search term, the string should be searched on Wikipedia.

  1. Tap on address bar. It says "Search or enter address". This is correct behaviour.
  2. Select the Wikipedia shortcut. Address bar should change to say: "Search on/with Wikipedia".
  3. Enter a search string that is a URL.
  4. Fenix should send it to Wikipedia.

Actual behavior

Firefox continues to treat the search term like a URL, which is a bug. Desktop Firefox does the correct thing and sends it to Wikipedia.

Device information

  • Fenix version: Nightly 200716 18:06 (Build #21981810)

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Severity: -- → N/A
You need to log in before you can comment on or make changes to this bug.