Closed Bug 600703 Opened 15 years ago Closed 13 years ago

"ASSERTION: mArguments wasn't cleaned up properly" with showModalDialog

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: jruderman, Assigned: bholley)

References

()

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
1. Load the testcase (with popup blocking disabled). 2. Press Cmd+Q. Result: ###!!! ASSERTION: Uh, LeaveModalState() called w/o a reachable top window?: 'Error', file dom/base/nsGlobalWindow.cpp, line 6140 (bug 398103?) ###!!! ASSERTION: mArguments wasn't cleaned up properly!: '!mArguments', file dom/base/nsGlobalWindow.cpp, line 861
Attached file stack traces
Assigning a url that does it for me without having to quit the app. Just close the modal dialog and shortly thereafter the assert is hit.
URL: data:text/html,<html><body%20onload="...
(In reply to Nochum Sossonko [:Natch] from comment #2) > Assigning a url that does it for me without having to quit the app. Just > close the modal dialog and shortly thereafter the assert is hit. I can reproduce with the same testcase.
This assertion was added in https://github.com/mozilla/mozilla-central/commit/0d8b79a0bf88c75d1f4507f07cb5f95228397f73 Author: jst Date: 2005 Aug 12 Summary: Followup changes to bz's review for bug 296639. Reviews pending, a=drivers
Isn't this a dup? And IIRC dup of a somewhat invalid bug. We should just remove the assertion. (maybe change it to NS_WARN_IF_FALSE)
The only other bug I see that mentions "mArguments wasn't cleaned up properly" is bug 640127, which is still open.
I worked around this in: https://hg.mozilla.org/integration/mozilla-inbound/rev/d08c12966908 in prep for bug 404077. That said... if we don't call the cleanup functions (DetachFromDocShell for outers, FreeInnerObjects for inners), can't we end up leaking windows if things aren't easy to clean up? And isn't this assertion a sign that we didn't? (Or is there actually a path from FreeInnerObjects to freeing mArguments?)
Blocks: 851961
Maybe I'll get a chance to look at this soon.
Assignee: nobody → continuation
I recently embarked on an epic quest to make showModalDialog more sane.
Assignee: continuation → bobbyholley+bmo
Depends on: 860941
Fixed by bug 860941.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: