Open Bug 1877530 Opened 2 years ago Updated 2 years ago

URLs should not be sent to search engine

Categories

(Firefox for Android :: Search, defect, P3)

Firefox 122
defect

Tracking

()

Tracking Status
firefox123 --- affected
firefox124 --- affected
firefox125 --- affected

People

(Reporter: mozilla, Unassigned)

Details

(Whiteboard: [qa-triaged])

User Agent: Mozilla/5.0 (Android 10; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox for Android

When I enter an URL which contains a space character it is aleays sent to search engine also when starting with https://. I previously used Samsung browser and it correctly called the url. It works when I use %20 instead of space characters.

Please fix: Anything properly starting with a know URL start should not be sent to the search engine and called directly instead even when it contains spaces. Sending marked URLs to the search is unexpected behaviour.

The Bugbug bot thinks this bug should belong to the 'Firefox::Search' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Search
Product: Firefox → Fenix

The severity field is not set for this bug.
:skhan, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(skhan)
Severity: -- → S2
Flags: needinfo?(skhan)

Thank you for the report!

Could you provide some problematic URLs?
Also, the device you tested on.

Flags: needinfo?(mozilla)
Whiteboard: [qa-triaged]

https://books.stoecker.eu/author/Gaiman, Neil when entering manually which then is sent as "https://books.stoecker.eu/author/Gaiman,%20Neil" (or not encoded with " ", the server accepts both variants).

Flags: needinfo?(mozilla)

Device: Samsung Galaxy XCover 5 with Android 13

I though that's somewhere in the report, as I created the report on the device with Firefox, so that any relevant info gets submitted. Would have been much easier to make a report on my normal computer.

Thank you!
I was able to reproduce it on both Nightly 125.0a1, and 123.0 with Samsung Galaxy S24 (Android 14).
Manually writing "https://books.stoecker.eu/author/Gaiman, Neil" redirects me to the search engine on Firefox, but not on Chrome.
I'll confirm this ticket.

Status: UNCONFIRMED → NEW
Ever confirmed: true

In principle, I agree with this bug report.

However, with reference to bug 1892563 as an example, I would like to point out that there are certainly use cases in which it makes sense to send the complete URL to a search provider.
Such scenarios should be considered in the solution so that all needs are taken into account in the end.

In the strange case that a complete URL should be searched the proper solution would be to go to the search page directly and enter the URL there instead of relying on a web browser to forward the search. A web browsers main purpose is to display data, not to forward searches.

On Firefox desktop entering the url https://books.stoecker.eu/author/Gaiman, Neil visits the URL.

However you can still search for it, by going into search mode (selecting the engine from the bottom of the address bar), and then entering the URL.

That seems a reasonable mix which also takes account of user expectations.

Can Firefox Android use the same code (via GeckoView) that desktop uses to differentiate URLs from search queries?

Severity: S2 → S3
Priority: -- → P3

I suspect not at the moment as most of it is specific to the desktop implementation of the address bar. Marco might know more.

Flags: needinfo?(mak)

Desktop pretty much uses the URIFixup module, that for the most part trusts the URI parser, in the sense in most cases it will put a protocol in front of the string and see if it resolves to a valid URI. It also does some typo correction for common protocols, or public suffixes. Flags can be used to adapt behavior.

Flags: needinfo?(mak)
You need to log in before you can comment on or make changes to this bug.