Open Bug 2097644 Opened 4 days ago Updated 4 days ago

Delete this Smart Page? pop up is affected by page zoom

Categories

(Core :: Machine Learning: Frontend, defect)

Desktop
All
defect

Tracking

()

Tracking Status
firefox161 --- affected
firefox162 --- affected
firefox163 --- affected

People

(Reporter: atrif, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(1 file)

Attached image smart_01_zoom.gif —

Found in

  • Nightly 163.0a1 (2026-11-25)

Affected versions

  • Nightly 163.0a1 (2026-11-25)
  • 162.0b1
  • 161.0

Affected platforms

  • All

Preconditions

  • Enable Smart Window.
  • browser.smartwindow.aitab.enabled: true

Steps to reproduce

  1. Ask the assistant to create a page
  2. Open the created page and click to delete the page.
  3. Zoom in or out of the page.

Expected result

  • The Delete this Smart Page? pop-up is not affected by the page zoom.

Actual result

  • The Delete this Smart Page? pop-up is affected by the page zoom.

Regression range
N/A

The confirmation is an in-content <dialog> opened with showModal() in aitab-page-actions.mjs, so it belongs to the about:smartpage document and scales with its zoom like the rest of the page.

Fix: Drop the in-content dialog and have #handleDeletePage in AITabParent.sys.mjs confirm through Services.prompt.asyncConfirmEx(this.browsingContext, Ci.nsIPrompt.MODAL_TYPE_TAB, ...), following deleteMonitorWithConfirmation in MonitorUIUtils.sys.mjs but with a tab-modal prompt, return {success: true, cancelled: true} on cancel for #deletePage in aitab-page.mjs to ignore, and move browser_aitab_actions.js to the prompt.

Suggested severity: S4. The dialog stays fully usable at any zoom level and only its scale differs, so this is cosmetic.


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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: