Bookmark keyword search and search mode search uses the default engine search when there is restrict symbol at the end of search string
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox123 | --- | verified |
People
(Reporter: mcheang, Assigned: mcheang)
Details
Attachments
(1 file)
While working on Bug 1667639 - Ending a keyword query with a question mark (?) searches default search engine instead and restricts to search Marco and I found another bug. This bug can manifest in two ways:
1 Bookmark keyword search
Steps To Reproduce:
-
Add a bookmark keyword
a. Go to https://unsplash.com/
b. Right click on the page's search bar
c. Click on "Add a keyword for this search"
d. Add "unsplash" as the keyword and save it. -
Type
unsplash kitten *
onto Firefox's address bar -
Hit enter and it will search
unsplash kitten *
on the default search engine.
Expected:
It should search kitten *
on the unsplash website.
Actual:
It searched unsplash kitten *
on the default engine search result page.
2 Alias Search
- Navigate to
about:preferences#search
- Add a keyword for one the search engines. E.g.
wiki
for wikpedia - Copy
wiki kitten?
orwiki kitten ?
(either one would work) - Right click the address bar by clicking
Paste and Go
- It searched
wiki kitten?
on the default search engine
Expected:
It should search kitten?
on wikipedia.
Actual:
It searched kitten?
on the default engine search result page.
Assignee | ||
Comment 1•1 year ago
|
||
This patch fixes all restrict symbols at the end EXCEPT it does not fix the ?
restrict symbol. Another patch will be updated to fix the ?
restrict symbol at the end of a search string in Bug 1667639.
Assignee | ||
Comment 2•1 year ago
|
||
search when restrict symbols are at the end of the search string. r=mak!
This patch does not fix the ? symbol at the end. That fix will be in Bug 1667639.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
Reproducible on a 2024-01-09 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 123.0a1 on Windows 10, Ubuntu 22, macOS 12.
Scenario 1 - Bookmark keyword search is respected and kitten *
is searched on Unsplash website.
Scenario 2 - Alias Search is respected. Once you Paste and Go the following string, wiki kitten ?
, the search is made on Wikipedia.
Description
•