Closed Bug 1051116 Opened 10 years ago Closed 10 years ago

Default to a search query for search suggestions

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 34

People

(Reporter: bnicholson, Assigned: bnicholson)

Details

Attachments

(1 file)

(From https://bugzilla.mozilla.org/show_bug.cgi?id=1050943#c4)
> Looking at [1], isSearchQuery does a URL load rather than a search if
> isSearchQuery() returns false. We pass false to use as the default if we
> can't determine whether the query is a URL or a search, which seems like a
> bug to me -- I always thought we defaulted to true (i.e., a search) there.

We should default to a search unless we know that the suggestion we're clicking is a URL. Fixing this isn't as important since bug 693808 landed, but we should still do the right thing. The current behavior would also be broken if bug 909536 were to land (since clicking suggestions from the non-default provider would always end up search through the default search engine via nsIURIFixup).
Attachment #8470365 - Flags: review?(wjohnston) → review+
https://hg.mozilla.org/mozilla-central/rev/26c80d563714
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Can I pick this bug for testing? If so, can i know the test-steps for the same?

Thanks,
Sudhir
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: