Closed Bug 2082307 Opened 1 month ago Closed 1 month ago

Letters render incorrectly on the GenAI tab on some pages

Categories

(Core :: Machine Learning: Frontend, defect)

Firefox 160
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 2080936
Tracking Status
firefox160 --- affected

People

(Reporter: cgeorgiu, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(1 file)

Found in

  • Nightly 160.0a1

Affected versions

  • latest Nightly 160.a01

Tested platforms

  • Affected platforms: Win 11, macOS 26 and Ubuntu 26.04

Preconditions

  • browser.smartwindow.enabled = true
  • browser.smartwindow.aitab.enabled = true

Steps to reproduce

  1. Navigate to this site.
  2. Ask the assistant to create a Gen AI tab with using that page, e.g. "make an AI tab for this page"
  3. Open the create AI tab and inspect the rendered page.

Expected result

  • The page is correctly displayed.

Actual result
*The letters are arranged vertically in a single column, with the font size shrinking toward the bottom of the page.

Regression range

  • N/A

Additional notes

  • Please observe the attached screenshot with the issue.
  • I cannot reproduce the problem with other websites so far. I'm going to update the bug report If I'll find similar ones.

In aitab-page.css, .aitab-blocks has margin: 0 auto and no width, so it shrinks to fit its blocks. aitab-highlights.css gives .aitab-highlights container-type: inline-size, so that block adds no content width. When Highlights is the only block that renders (Cards and SourceLinks render nothing, which is likely for an image-search page), the column collapses to roughly its 236px padding, and overflow-wrap: anywhere puts one letter per line from the h2 down to the body text. Bug 2078662 (980d4c773836) caused this: it added the auto margins and removed the page-level container, but left this one in place, as already noted in bug 2080936 comment 2.

Fix: Add width: 100% to .aitab-blocks, keeping its 1170px max-width (the pattern ai-chat-grid.css uses with containment). Coordinate with the 2080936 patch, and if it drops container-type, change the @container (max-width: 560px) rule to a media query. Add a Header + Highlights-only case to browser_aitab_page.js asserting the highlights content box is wider than its padding.

Suggested severity: S3. A generated page whose only body block is Highlights is unreadable, but the feature is Nightly-only behind prefs and pages with any other block render normally.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 2080936
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: