Closed Bug 1660778 Opened 4 years ago Closed 4 years ago

Unrelated history results when in search mode for a non-generic engine

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
5

Tracking

()

RESOLVED FIXED
82 Branch
Iteration:
82.2 - Sep 7 - Sep 20
Tracking Status
firefox82 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

Attachments

(1 file)

The fix in bug 1658646 made search mode a bit more confusing, in particular the history search doesn't seem to be restricted to the alias domain.
I just tried to search for a short string while search mode was enabled on Wikipedia, I got 2 history results from www.google.com where my typed string was matching the query string. Those were completely unexpected since I'm trying to focus on Wikipedia results.

It sounds like we missed a piece due to testing on non-chaotic enough profiles, I think the results should only come from pages with the alias domain, not others? That could be matter of modifying the search string for the history search to include that domain.

Did you see this on a Nightly with bug 1659775 applied?

(In reply to Harry Twyford [:harry] from comment #1)

Did you see this on a Nightly with bug 1659775 applied?

yep, in today's Nightly.
Actually I see what it is, it is addresses like "https://www.google.com/url?...wikipedia..." that match on the domain. I think any url containing another url will cause this. Basically the search is correct but it's not really limiting the search to a specific host.

Ah I see. Yeah, that makes sense.

(In reply to Marco Bonardo [:mak] from comment #0)

That could be matter of modifying the search string for the history search to include that domain.

That's what bug 1658646 does (or it supposed to do). It adds the engine's host to the _keywordSubstitutedSearchString. So in Wikipedia search mode, we're just executing a search for <locale>.wikipedia.org <query>, which would let Google URLs containing Wikipedia URLs through...

(In reply to Harry Twyford [:harry] from comment #3)

So in Wikipedia search mode, we're just executing a search for <locale>.wikipedia.org <query>, which would let Google URLs containing Wikipedia URLs through...

yes, and it's not just google urls, a lot of other services have urls into their urls... maybe we need a post-facto filter checking the host and dropping unwanted results, or we'd need to modify UnifiedComplete to support filtering on host (this would be a lot more efficient).

Priority: P2 → P3

I'll check how complex it would be to search only specific hosts in UnifiedComplete.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Iteration: --- → 82.1 - Aug 24 - Sep 6
Points: --- → 3
Points: 3 → 5
Iteration: 82.1 - Aug 24 - Sep 6 → 82.2 - Sep 7 - Sep 20
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/3346ff1d921f
Improve urlbar search mode history results by properly filtering on host and redirect sources. r=harry
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Blocks: 1664252
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: