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)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bugzilla, Unassigned)
Details
(Keywords: hang)
Attachments
(1 file, 1 obsolete file)
|
215 bytes,
text/html
|
Details |
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:
| Reporter | ||
Comment 1•21 years ago
|
||
Testcase
Comment 2•21 years ago
|
||
WFM 2004081109/Seamonkey-trunk/W2K (950 MHz, 650 MB)
Severity: normal → critical
Keywords: hang
Comment 3•21 years ago
|
||
The testcase runs in about 4 seconds here with a current build.
| Reporter | ||
Comment 4•21 years ago
|
||
> 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.
Comment 5•21 years ago
|
||
> 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.
| Reporter | ||
Comment 6•21 years ago
|
||
OK, testcase wit hlarge cycle.
Attachment #155909 -
Attachment is obsolete: true
| Reporter | ||
Comment 7•21 years ago
|
||
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
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•