Closed Bug 255341 Opened 21 years ago Closed 21 years ago

Mozilla hangs during the long JS-cycle with document.write

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Unassigned)

Details

(Keywords: hang)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.7.2) Gecko/20040803 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.7.2) Gecko/20040803 During the long cycle with document.write() Mozilla hangs (depending on the length of the cycle - sometimes only for some minutes, sometimes for ever) without showing dialog "Do you want abort the script?". E.g.: document.write("<table>"); for(i=1; i<10000; i++) document.write("<tr><td>1</td></tr>"); document.write("</table>"); When you document.write not table cells but only string, it is quick enough: document.write("<table>"); for(i=1; i<10000; i++) document.write("1"); document.write("</table>"); Reproducible: Always Steps to Reproduce:
Attached file Hang testcase (obsolete) —
Testcase
WFM 2004081109/Seamonkey-trunk/W2K (950 MHz, 650 MB)
Severity: normal → critical
Keywords: hang
The testcase runs in about 4 seconds here with a current build.
> The testcase runs in about 4 seconds here with a current build. And I thought I have quick computer ;-( Try to enlarge the 'for loop' in the testcase.
> And I thought I have quick computer ;-( I have a P3-733... hardly "quick". Please do make sure to be testing a current trunk build, not 1.7, though.
Attached file Large cycle
OK, testcase wit hlarge cycle.
Attachment #155909 - Attachment is obsolete: true
OK, tested on nigthtly Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a3) Gecko/20040812, Build ID: 2004081208 Ouuu, it is pretty much quicker! After enlarging the cycle, Mozilla freezes for about 20 sec and then allows me to stop the script. OK, closing. Boris>But I am not sure whether complete Mozilla freenzing for 20 sec by one webpage still is not bug to be considered.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: