Address bar doesn't respect the default engine for search mode
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
People
(Reporter: standard8, Assigned: adw)
References
Details
(Whiteboard: [fixed by bug 1658964])
On my test profile, I'm seeing some really strange effects with the search mode code.
I think these are the steps to repeat:
- Have Google set as the default engine, do some searches so that they get saved, e.g. "test"
- Switch to a different search engine, e.g. amazon.
- Type "test"
- Expected: "Search with Amazon", Actual "Search with Google"
- Click the Amazon one-off
- Shows
Amazon.com test
in the address bar. - Shows "Search with Google" in the results.
- Shows
- Press enter
- Expected: Searches with amazon. Actual: Address bar contents replaced by the "Google" pill.
I'm guessing it is attempting to revert to saved searches from my history.
Comment 1•4 years ago
|
||
I'm not able to reproduce this one. Can you, Drew?
Assignee | ||
Comment 2•4 years ago
|
||
I can reproduce this but only up to step 3. This at least exposes some gaps in our test cases...
Assignee | ||
Comment 3•4 years ago
|
||
Sorry, I was wrong about being able to reproduce this. I did the STR wrong.
The search heuristic is added here, so this bug would indicate that queryContext.searchMode
is wrong, like it's getting stuck somehow. But I'm assuming the blue "Google" indicator was not also present in the urlbar, because that would have been visually obvious and you probably would have mentioned it? That would indicate that not only is the search mode wrong, the connection between the indicator and context.searchMode
is broken...
Reporter | ||
Comment 4•4 years ago
|
||
I've just found out the missing part of the STR - You need to have Google with an alias of "test". So the refined steps to repeat would be:
- Have Google set as the default engine, give it an alias "test" in the one-click preferences.
- Select the Address bar
- Switch to a different search engine, e.g. amazon.
- Type "test"
- Expected: "Search with Amazon", Actual "Search with Google"
- Click the Amazon one-off
- Shows
Amazon.com test
in the address bar. - Shows "Search with Google" in the results.
- Shows
- Press enter
- Expected: Searches with amazon. Actual: Address bar contents replaced by the "Google" pill.
Comment 5•4 years ago
|
||
Ah, thank you! In that case, this bug has to do with one alias replacing another. I think Drew is working on a few of those bugs at once, solved with a single patch for bug 1658964. Drew, would you consider this to be a duplicate?
Assignee | ||
Comment 6•4 years ago
|
||
This is fixed in the patch, but let's keep it separate for now since it also isn't a clean duplicate.
Thanks Mark!
Assignee | ||
Comment 7•4 years ago
|
||
Bug 1658964 has landed, marking fixed.
Comment 8•4 years ago
|
||
I verified this issue using 82.0a1 (2020-09-14) on macOS 10.13 and Windows 10 x64.
Adrian could you help me with Ubuntu verification?
Comment 9•4 years ago
|
||
I verified this issue using 82.0a1 (2020-09-15) on Ubuntu 20.04 Taking in account comment 8 and comment 9, marking as verified.
Description
•