Closed Bug 622218 Opened 9 years ago Closed 5 years ago

Quitting during window.open causes shutdown hang

Categories

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

x86
macOS
defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: hang, testcase)

Attachments

(2 files, 2 obsolete files)

###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 109
Attached file stack trace for the assertion (obsolete) —
nsGlobalWindow::OpenJS spins the event loop!?
Attached file sample for the hang (obsolete) —
The assertion is most likely to trigger if you press Cmd+Q just before the testcase opens a new window.
> nsGlobalWindow::OpenJS spins the event loop!?

Yes, because it has to load the XUL for the new window's browser UI.
See bug 622764 for another assertion that sometimes accompanies this one.
Blocks: 774259
Depends on: 795703
bug 795703 has been pushed to m-i and might fix this.
That fixes the assertion, but I still get the hang (depending on timing; see comment 3).
Keywords: assertion
Summary: Quitting during window.open causes "ASSERTION: Oops! You're asking for a weak reference to an object that doesn't support that" and shutdown hang → Quitting during window.open causes shutdown hang
Attached file sample for the hang
Attachment #500453 - Attachment is obsolete: true
Attachment #500454 - Attachment is obsolete: true
WFM. I tried about 20 times and didn't get any hangs or assertions.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.