Closed Bug 2028077 Opened 11 days ago Closed 9 days ago

Closing the TOU or Privacy policy windows opened from their respective links will also close the TOU modal without the user accepting the terms

Categories

(Firefox :: Messaging System, defect, P1)

Desktop
Unspecified
defect
Points:
1

Tracking

()

VERIFIED FIXED
151 Branch
Tracking Status
firefox-esr140 --- disabled
firefox149 --- disabled
firefox150 --- verified
firefox151 --- verified

People

(Reporter: rdoghi, Assigned: mjung)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression, Whiteboard: [genai][omc][tos])

Attachments

(3 files)

Attached video YesNo.mp4

Found in

  • Beta 150.0b4

Affected versions

  • Nightly 151.0a1 (2026-03-30)
  • Beta 150.0b4

Affected platforms

  • all

Steps to reproduce

  1. Open Firefox 138.0b2 and set the region in about:Config to US
  2. Open the latest Build and Reach the Smart Window.
  3. Open one of the TOU links and close that window.

Expected result

  • The TOU modal should still be displayed when the newly opened window is closed.

Actual result

  • When closing the Window with the TOU link it will also close the TOU modal without the user accepting it.
  • If a user continues and signs in to Smart window he is never asked again about the TOU.
  • Please note that if he signs out and tries to reach the Smart window again it will show the TOU modal again.

Please also note that this issue occurs with our normal Startup TOU modal as well.

Regression range
N/A

Whiteboard: [genai][onboarding] → [genai][omc]

Hi @Mimi can you take a look at this issue ? It seems that in our latest Beta whenever we open the TOU or Privacy Policy windows and close them it will automatically close the TOU modal without accepting the Terms.

Flags: needinfo?(mjung)
QA Contact: rdoghi
Summary: Users that never saw the TOU modal can still sign in and use Smart window without accepting the Terms of Service → Closing the TOU or Privacy policy windows opened from their respective links will also close the TOU modal without the user accepting the terms

Thanks for flagging this. Do you happen to have a regression range (for the new user TOU modal)? I'll do some investigating in the meantime.

Flags: needinfo?(mjung)

8:32.92 INFO: Last good revision: 0fa3dfdbb00c8babe89f202457343e68b5b84f03
8:32.92 INFO: First bad revision: 42131ed5e398ea819dc3cc685879b4dcde1be83d
8:32.92 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0fa3dfdbb00c8babe89f202457343e68b5b84f03&tochange=42131ed5e398ea819dc3cc685879b4dcde1be83d

I believe this is related to 2021013, reverting the changes from that patch restores the behavior.

Keywords: regression
Regressed by: 2021013

:hsohaney, since you are the author of the regressor, bug 2021013, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(hsohaney)
Severity: -- → S3
Points: --- → 1
Component: Machine Learning: Frontend → Messaging System
Priority: -- → P1
Product: Core → Firefox
Whiteboard: [genai][omc] → [genai][omc][tos]
Assignee: nobody → mjung
Status: NEW → ASSIGNED

Hi @Mimi, I am unable to do a correct regression range since the builds never show the TOS but I manually downloaded the builds and this was the last good build: https://ftp.mozilla.org/pub/firefox/nightly/2026/03/2026-03-23-00-18-04-mozilla-central/
and this is the first bad build : https://ftp.mozilla.org/pub/firefox/nightly/2026/03/2026-03-24-00-27-15-mozilla-central/

Pushed by mjung@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/115027061c56 https://hg.mozilla.org/integration/autoland/rev/778678527e88 Gate Spotlight.close() to owning window to prevent TOU modal from closing when clicking on links r=omc-reviewers,sachung,emcminn
Flags: needinfo?(hsohaney) → qe-verify+
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/98bf4b92d3f5 https://hg.mozilla.org/integration/autoland/rev/e5c87c609852 Revert "Bug 2028077 - Gate Spotlight.close() to owning window to prevent TOU modal from closing when clicking on links r=omc-reviewers,sachung,emcminn" for causing bc failures at browser_privatebrowsing_about_nimbus_messaging.js

Backed out for causing bc failures at browser_privatebrowsing_about_nimbus_messaging.js
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(mjung)
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/29c2d4b223e7 https://hg.mozilla.org/integration/autoland/rev/b6d613d7f2c4 Gate Spotlight.close() to owning window to prevent TOU modal from closing when clicking on links r=omc-reviewers,sachung,emcminn

My patch for bug 2028115 is the fix for the failure in comment 9, so I relanded this patch with my patch on top.

Flags: needinfo?(mjung)
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Verified as fixed in our latest Nightly 151.0a1 (2026-04-02)

QA Whiteboard: [qa-found-in-c151][QA-4747][S2] → [qa-found-in-c151][QA-4747][S2][qa-ver-needed-c151/b150][uplift]

The patch landed in nightly and beta is affected.
:mjung, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mjung)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Clicking links (Terms of Use, Privacy Notice) in any Spotlight modals unexpectedly closes the modal when the link's window is closed.

Users can bypass required TOU acceptance in the new user onboarding modal and for Smart Windows TOU/Existing users TOU it would unexpectedly close the Spotlight. For Smart Windows, if a user continues and signs in to Smart window they won't be shown TOU again unless they sign out and try to reach Smart Windows again, allowing them to bypass TOU.

  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Patch adds window ownership tracking and has test coverage added to prevent regression. The fix only impacts Spotlight dialogs with links (limited to TOU) while fixing a critical UX issue of bypassing TOU acceptance.
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9564144 - Flags: approval-mozilla-beta?
Attachment #9564144 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed in our latest Beta 150.0b6 (64-bit)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c151][QA-4747][S2][qa-ver-needed-c151/b150][uplift] → [qa-found-in-c151][QA-4747][S2][qa-ver-done-c151/b150][uplift]
Flags: qe-verify+
Flags: needinfo?(mjung)
Blocks: 2024028
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: