Created attachment 177391 [details] Test case to illustrate the bug Test case to illustrate this bug. Click the "Click Here" text on each element to generate a child element. Follow them down until about 15-20 elements have been spawned, then try to click the original element, which should hide all children.
After another test I have determined that the browser does not truly hang, but took around five minutes to sort out the problem.
WFM: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050312 Firefox/1.0+ Tried with 1.0.1, noticed a slight delay (have a fast machine). Not noticable with trunk build. Can you retest with a trunk build? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Tried it with the trunk build. Experienced a noticeable speed improvement, but there still is a delay. Nesting of 30+ items still produced a 5 minute delay. Also attempted this with a modified version that separates the show/hide behavior into another function, and does not nest new elements under existing elements (all have same initial node as a parent). This newer version had no speed issues at all, and disappeared immediately. It looks like the issue here crops up only when the new div elements are nested inside of previous ones instead of all having the same parent. I am attaching the file proving this for reference. Please use it to help document that deep-level nesting is related to the issue.
Created attachment 177404 [details] Proof showing that same amount of nodes w/out deep nesting does not have an issue Getting 30+ nodes on this document then hiding them does not affect the performance of the browser when those nodes are not deeply-nested.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050405 Firefox/1.0+ WFM, I used the testcase provided, and went through the whole clicking procedure to create another nest about 200 times, and never had any sort of slow-down, hang, or crash. I am going to go ahead and mark this WFM, If anybody disagrees, or you can reproduce with a recent build (trunk from within last 3 days), re-open.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.