Closed
Bug 140060
Opened 22 years ago
Closed 22 years ago
ReplaceChild on a document's documentElement fails
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: peterv, Assigned: peterv)
Details
Attachments
(3 files, 1 obsolete file)
1.11 KB,
text/xml
|
Details | |
611 bytes,
text/xml
|
Details | |
953 bytes,
patch
|
bzbarsky
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Open the testcase, you'll get an assertion (###!!! ASSERTION: element not in the document: 'doc != nsnull', file nsChildIterator.cpp, line 54) and the second frame will not show content.
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
That testcase needs to replace "&" with "&" in the iframe src...
Assignee | ||
Comment 4•22 years ago
|
||
Attachment #80955 -
Attachment is obsolete: true
Assignee | ||
Comment 5•22 years ago
|
||
Yeah, yeah. You're to quick ;-). This should fix it. Looking for reviews.
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.1alpha
Comment 6•22 years ago
|
||
Hm... is that first change (to SetDocument() after ContentRemoved() to get rid of the assertion? Right now, SetToURI and ReplaceChild first SetDocument() and then call ContentRemoved(), while RemoveChild first calls ContentRemoved() and then SetDocument(). Which is right? Intuitively, I'd expect SetDocument (remove the content) then ContentRemoved, but....
Comment 7•22 years ago
|
||
Comment on attachment 80957 [details] [diff] [review] Fix v1 r=bzbarsky
Attachment #80957 -
Flags: review+
Comment 8•22 years ago
|
||
Comment on attachment 80957 [details] [diff] [review] Fix v1 sr=jst
Attachment #80957 -
Flags: superreview+
Assignee | ||
Comment 9•22 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 10•22 years ago
|
||
Something is not quite right on the testcase. The content from the 1st frame is successfully imported into the second frame, however, the second frame gains no scrollbar even though setting focus in the frame and scrolling using the mouse or keyboard is successful. Also, clicking "Date" doesn't scroll the frame down to the anchor in the second frame as it does in the first frame. In the first frame, viewing the properties or copying of the "Date" link results in "http://bugzilla.mozilla.org/attachment.cgi?id=80954&action=view#date" whereas the same thing in the second frame results in "#date". Should these findings be reported as a new bugs or are these issues known already? jake
Assignee | ||
Comment 11•22 years ago
|
||
These need to be reported as separate bugs but I was already planning to file the second bug and the first one is bug 78070.
Comment 12•22 years ago
|
||
Peter, can you post the bug number of the one you are going to report here? thanks, Jake
You need to log in
before you can comment on or make changes to this bug.
Description
•