[TOS] Update showModal to use gBrowser.selectedBrowser
Categories
(Firefox :: Messaging System, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox151 | --- | unaffected |
| firefox152 | --- | fixed |
People
(Reporter: mjung, Assigned: mjung)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [omc])
Attachments
(1 file)
Looks like 2033243 exposed an existing issue with passing a chrome Window to showModal when it actually expects a <browser> element. Before 2033243, ownerGlobal was defined on EventTarget and since Window implements EventTarget, win.ownerGlobal reurned the window itself. With the cleanup, it was replaced with documentGlobal causing the new TOU modal to not render in the Window. We should be using win.gBrowser.selectedBrowser instead.
This was evident when enabling logs, I could see: modal displayed, waiting for user interaction but no TOU modal.
Updated•28 days ago
|
Comment 2•27 days ago
|
||
Do we really have zero test coverage of this codepath? This should've been caught by bug 2033191 comment 2 otherwise :(
(In reply to Emilio Cobos Álvarez [:emilio] from comment #2)
Do we really have zero test coverage of this codepath? This should've been caught by bug 2033191 comment 2 otherwise :(
Yeah I was surprised as well, my local changes have test coverage added that I'll push up to my patch today.
Updated•27 days ago
|
Comment 6•26 days ago
|
||
| bugherder | ||
Updated•10 days ago
|
Updated•2 days ago
|
Comment 7•2 days ago
|
||
Set release status flags based on info from the regressing bug 2036439
Description
•