Closed
Bug 128666
Opened 23 years ago
Closed 22 years ago
Mozilla should still display page output during long loops
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
People
(Reporter: netdragon, Assigned: jst)
Details
Attachments
(2 files)
Mozilla doesn't update the webpage during tight loops. Not a dupe of bug 13350 or bug 30942. This has to do with display, not responsiveness and isn't necessarily infinite loops. Will attach testcase.
Reporter | ||
Comment 1•23 years ago
|
||
Something needs to yield occasionally to allow other parts of mozilla to work.
Comment 2•23 years ago
|
||
I think that the current behaviour is the correct one. Your testcase is very simple, but what would happen with a very complex loop? If you want to move a lot of elements, with your proposal after any change to any element the display will be refreshed, meaning that a lot of CPU would be spent for this task. If the author of the web page wants the process to refresh the display, it can be done like in your phase 2, using a timeout.
Comment 3•23 years ago
|
||
Over to DOM Level 0 for a decision - FWIW, as far as I can see Mozilla and IE6 are behave identically on Brian's testcase. Brian, is that your experience, too?
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
Reporter | ||
Comment 4•23 years ago
|
||
Alfonso: I definately agree that it shouldn't be displayed every iteration, but maybe every second or so.
Reporter | ||
Comment 5•23 years ago
|
||
You can see in this testcase that a user might think the page isn't displaying anything. This would last for about 10 seconds and by then the user might give up. This might also be a problem on the chrome (I'm not sure), where js might stop the display. IE does a lot of things wrong, and we shouldn't try to emulate them. The browser should refresh the display every .5 seconds or so regardless of long loops. See also bug 30942 about Mozilla staying responsive during endless loops.
Reporter | ||
Updated•23 years ago
|
Summary: Mozilla should still display page output during tight loops → Mozilla should still display page output during long loops
Updated•22 years ago
|
Whiteboard: DUPEME
Comment 6•22 years ago
|
||
This is a dup of bug 30942, since the same layout engine handles the UI and the page.... Solving the problem described in this bug is completely equivalent to solving the problem described in bug 30942. *** This bug has been marked as a duplicate of 30942 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•