Closed Bug 2019266 Opened 6 months ago Closed 5 months ago

Fix get_page_content to not return chrome:// error that the assistant doesn't know what to do with

Categories

(Core :: Machine Learning: Frontend, defect, P1)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
150 Branch
Tracking Status
firefox-esr140 --- disabled
firefox148 --- disabled
firefox149 --- disabled
firefox150 --- verified

People

(Reporter: rdoghi, Assigned: tliu, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][models][qa])

Attachments

(2 files)

Attached image hi.png

Found in

  • Nightly 150.0a1 (2026-02-24)

Affected versions

  • Nightly 150.0a1 (2026-02-24)
    Beta 149.0b1

Affected platforms

  • all

Preconditions
Have the Gemini AI model selected.

Steps to reproduce

  1. Open a Smart window.
  2. Type Hi or Hello in the Smart bar.

Expected result

  • The Ai model should respond appropriately to the users Prompt.

Actual result

  • The Gemini AI model is returning an Error about not being able to access the content from the New tab.

Regression range
N/A

Whiteboard: [genai][chat] → [genai][models]
Priority: -- → P1
Summary: Gemini assistant will respond with an error to a simple Hi prompt → Fix get_page_content to not return chrome:// error that the assistant doesn't know what to do with
Assignee: nobody → tliu
Status: NEW → ASSIGNED

Quick update:
While reproducing this issue, I found that get_page_content is not used so it's not the root cause.
Also, there is another bug that partially impacts on this one. I'll fix that one first, and then we should get less unwanted response.
Even with that fix, some test cases like query = "h" still failed though not mentioning "Chrome" anymore:
I can't access the content of the New Tab page. Is there anything else I can help you with?
To address/mitigate this issue I would need to tune prompts and some evaluations are needed to see if the change caused regression in other aspects.

Update:
verified the other bug is irrelevant to this one, the "improvement" should due to randomness of LLM.
It would still need some prompt tuning to mitigate this issue.

Whiteboard: [genai][models] → [genai][models][qa]

The severity field is not set for this bug.
:Mardak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)
Pushed by bjohns@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6a5a38d1ea0d https://hg.mozilla.org/integration/autoland/rev/c33c71ac3902 Fix get_page_content to not return chrome:// error that the assistant doesn't know what to do with r=bjohns,ai-models-reviewers
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

Verified as fixed in our latest Nightly Build 150.0a1 (2026-03-18) we can reopen this issue if it starts to show up for other prompts

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c150][QA-4747][S3] → [qa-found-in-c150][QA-4747][S3][qa-ver-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: