Closed Bug 2036948 Opened 28 days ago Closed 26 days ago

[TOS] Update showModal to use gBrowser.selectedBrowser

Categories

(Firefox :: Messaging System, defect)

defect

Tracking

()

RESOLVED FIXED
152 Branch
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.

Assignee: nobody → mjung
Whiteboard: [omc]
See Also: → 2033243
See Also: → 2037058

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.

Attachment #9583018 - Attachment description: WIP: Bug 2036948 - [TOS] - Update showModal to use gBrowser.selectedBrowser → Bug 2036948 - [TOS] - Update showModal to use gBrowser.selectedBrowser
Duplicate of this bug: 2037004
Pushed by mjung@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c2e4ff9f9ac9 https://hg.mozilla.org/integration/autoland/rev/6c7e4caffd18 [TOS] - Update showModal to use gBrowser.selectedBrowser r=omc-reviewers,janerik,sachung
Regressions: 2037297
Status: NEW → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
No longer regressions: 2037297
QA Whiteboard: [qa-triage-done-c153/b152]
No longer blocks: 2037004
Keywords: regression
Regressed by: 2036439

Set release status flags based on info from the regressing bug 2036439

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

Attachment

General

Creator:
Created:
Updated:
Size: