Closed Bug 1981787 Opened 7 months ago Closed 7 months ago

Google Lens searches return invalid results

Categories

(Firefox :: Search, defect, P1)

defect

Tracking

()

VERIFIED FIXED
143 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox141 --- unaffected
firefox142 --- unaffected
firefox143 --- verified
firefox144 --- verified

People

(Reporter: aflorinescu, Assigned: adw)

References

Details

(Whiteboard: [sng])

Attachments

(2 files)

Attached file NTP & Visual image.txt

Found in

  • Nightly 143.0a1;

Affected versions

  • Nightly 143.0a1;

Tested platforms

  • Affected platforms: Windows 11, Mac 13, Ubuntu 24

Preconditions

  • browser.search.visualSearch.featureGate true

Steps to reproduce

  1. Rightclick on any result from the NTP and from context menu go to Search Image with Google Lens
  2. From Visual Result page, right click on another image and from context menu go to Search Image with Google Lens

Expected result

  • uncertain, see aditional notes

Actual result (see screenshots)

  • Something went wrong No image at the URL. Try again with a different URL or image

Additional Notes:

  • The url before redirect is a weird one and seems incomplete ?!, I'm attaching a notepad since it has like 14k chars
  • Comparing the functionality, seems like Chrome doesn't allow followup Lens searches from images from visual results, option is missing from chrome.
  • Replacing the STR with a regular search, then switching to images results tab, then using Search Image with Google Lens on some of the results will return the same behavior Something went wrong No image at the URL. Try again with a different URL or image
  • Might also be an additional issue here since it seems that for some visual results(e.g sponsored) initial Search Image with Google Lens doesn't work the first time, then functions propely the 2nd time.

Thanks, if you can find an image URL that is not a data URI and that does not work, please let me know. For now, I'll address this bug by hiding the menu item for images that are encoded as data URIs. And thanks for mentioning that Chrome does not allow follow-up searches from the Lens SERP! That gives me more confidence it's OK for us to do that too, at least for now.

Details:

All the URLs on the Lens SERP seem to be data URIs. I tested with some other data URIs too, and none of them work, not even really short ones, so this seems to be a problem with data URIs in particular.

I pasted a data URI into the Lens web app to see what would happen, and it uses the POST endpoint. For non-data URLs, it uses the GET endpoint, like we're doing. I've started a discussion with Mark about whether we can/should support POST right now, but for the time being, I think it makes sense to hide the menu item for data URIs.

Assignee: nobody → adw
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1

I talked with Mark about this and he agreed that we should hide the menu item for data URIs, at least for now, and that we shouldn't overcomplicate things by adding more search config data. There are other ways we could fix this:

  • Go ahead and implement support for the Lens POST endpoint, and use it for data URIs
  • Encode some kind of rule in the search config that tells the client the kinds of image URLs that are supported and how to support them (e.g., use POST instead of GET)
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [QA-4208] [qa-found-in-c143] [S3] → [QA-4208] [qa-found-in-c143] [S3] [search] [qa-triage-done-c143/b142] [qa-ver-needed-c143/b142]

The bug is verified fixed using the latest Fx 144.0a1 and Fx143.0b5 on Windows, MacOS and Ubuntu. The context menu option(to "Search image with Google Lens") is no longer available for URIs.
However there was another issue discovered while testing this that results in a similar error. Please see bug 1985563 for the follow-up.

Status: RESOLVED → VERIFIED
QA Whiteboard: [QA-4208] [qa-found-in-c143] [S3] [search] [qa-triage-done-c143/b142] [qa-ver-needed-c143/b142] → [QA-4208] [qa-found-in-c143] [S3] [search] [qa-triage-done-c143/b142] [qa-ver-done-c144/b143]
Whiteboard: sng
Whiteboard: sng → [sng]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: