Add a "Search Image" content context menu item for performing visual searches
Categories
(Firefox :: Search, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
Add a "Search Image" content context menu item for performing visual searches.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
The main thing this does is add a new "Search Image with {engine}" menuitem to
the content context menu.
I refactored some of the existing context-menu search code so that much of it
could be reused for this, and much of this code is now a function of
SearchUtils.URL_TYPE. Text search ends up using the plain old SEARCH type,
and visual search uses the new VISUAL_SEARCH type. Theoretically if we were to
introduce new search types in the future that should be accessible from the
content context menu, it should be more straightforward to slot them in now.
I noticed that we don't seem to have tests that make sure clicking the
private-search menuitem in a non-private window properly opens a new private
window. I discovered that because I broke that behavior while working on this.
So I added some tasks to browser_contextmenu.js, which aren't strictly related
to this bug.
Comment 3•1 year ago
|
||
| bugherder | ||
Description
•