Closed
Bug 1400
Opened 26 years ago
Closed 26 years ago
script can cause an infinite loop
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
FIXED
M4
People
(Reporter: buster, Assigned: vidur)
References
()
Details
Attachments
(1 file)
2.49 KB,
text/plain
|
Details |
the following script causes an infinite loop. The superficial cause is the same
thead is added to the table twice (once on create, and again on appendChild.)
The root cause is nsGenericElement::GetNextSibling() uses IndexOf(mContent), and
always returns the index of the first occurance of mContent.
So, either the DOM needs to guard against this sort of thing, or content
iteration needs to be smarter.
table = document.createElement("TABLE");
thead = table.createTHead();
thead.appendChild(currentRow);
table.appendChild(thead);
Last I checked, vidur was in charge of the dom (and that includes the content
code). I just helped write it :-)
Assignee | ||
Updated•26 years ago
|
Priority: P1 → P2
Assignee | ||
Comment 2•26 years ago
|
||
I don't think this is a P1, so I'm going to downgrade it. Also, I think this is
either a generic content bug or something that table content needs to deal with.
I'll hold onto it for now, since it looks like generic content is being palmed
off to me. :-)
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 4•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA contact re-assigned according to the product areas we're currently working
on.
Updated•26 years ago
|
Target Milestone: M3 → M4
Comment 6•26 years ago
|
||
moving to m4.
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•26 years ago
|
||
Fixed a while ago. Using the DOM methods, content insertion ensures that a node
is removed from its old position before its added to the new one.
Comment 9•18 years ago
|
||
RCS file: /cvsroot/mozilla/testing/mochitest/tests/test_bug1400.html,v
done
Checking in test_bug1400.html;
/cvsroot/mozilla/testing/mochitest/tests/test_bug1400.html,v <-- test_bug1400.html
initial revision: 1.1
done
Flags: in-testsuite+
Comment 10•13 years ago
|
||
infinite loop
Comment 11•13 years ago
|
||
Hi,
Bug still present in firefox 9.0.1
VERSION
Build identifier: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
No infinite loop on chrome and opera (tested)
To reproduce
1>open file in firefox 9.0.1
2>open web-console(ctrl+shift+k) and check the error
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•