Closed Bug 469905 Opened 16 years ago Closed 16 years ago

nsGlobalWindow::SetNewDocument gets the wrong context for termination functions

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 466826

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file)

Attached patch Patch, v1Splinter Review
Found by bz in bug 466826, this is a regression from bug 460811.
Attachment #353315 - Flags: superreview?(jst)
Attachment #353315 - Flags: review?(mrbkap)
No longer depends on: 466826
Attachment #353315 - Flags: superreview?(jst)
Attachment #353315 - Flags: superreview+
Attachment #353315 - Flags: review?(mrbkap)
Attachment #353315 - Flags: review+
I still think the right thing to do is to pop off |cx| and push it back on around this code. That would fix both this bug and bug 466826, no? As it is, that bug is still unfixed...
I thought you said in bug 466826 comment 3 that fixing the context issue wouldn't prevent the assertion because cx->fp would still be null?
Fixing it by grabbing the right context up front, as you do here (and as I suggest in that comment), wouldn't prevent the assert. Fixing it by popping the wrong context and repushing it after we set the termination function would, I think.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Ok, that does fix both. Merging this bug back over.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: