Closed Bug 108687 Opened 24 years ago Closed 24 years ago

Throbber starts when using document.writeln

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 81980

People

(Reporter: mkaply, Assigned: jst)

References

()

Details

Go to URL. Click on either left or right click me. Note that throbber continues and there is an hourglass over middle frame.
That would be because you never call document.close().... we keep waiting for more input. This is correct behavior, imo.
Assignee: asa → jst
Component: Browser-General → DOM Level 0
QA Contact: doronr → amar
In particular, try clicking left, then right. The throbber behavior should make more sense then...
So this is yet another "Works on IE, doesn't work on Mozilla" Man that list is getting long.
OK, is there any way to add text to a frame rather than replace it. The behvior that the person who gave this to me was expecting was that you could have a frame that did logging where you just keep document.writelning to it, and it shows a new entry. With Mozilla, it does not appear possible to do that. If you document.close(), you lose the previous data.
The way to add text is the following: document.open() document.writeln() document.writeln() . . document.writeln() document.close() If you don't call .open() then writeln() seems to do that for you. Then while the document is open one can keep appending data, but that also means that the document is not done loading (obviously -- data is still coming in) so the throbber is active. Once you call close() the document is done loading so the throbber goes inactive, but at this point open() will naturally wipe the document clean (that's what open() does). How does the IE behavior differ from ours? Does it not animate the throbber at all for writeln()? Does it animate but stop it even though the document is not closed (hence still loading)?
IE doesn't ever animate the throbber at all no matter what you are doing. This means that with IE, you can put text in the middle from both the left and the right frame easily. On Mozilla, you cannot because the throbber continues until you call document.close, and once you have called document.close, the next document.writeln will replace the content. I've uploaded a better testcase that allows more control.
So the real "bug" here is that we start the throbber at all in these circumstances, no? Why is the throbber running a big problem in these circumstances? Note that IE's approach does not allow you to tell whether anything is happening at all (eg if I add a slow-loading image via document.writeln() you may not realize that you should wait for it because the throbber is inactive). Not arguing for one behavior or the other, just suggesting things that should be considered....
Summary: Throbber never stops when using document.writeln → Throbber starts when using document.writeln
Actually it does animate on IE if you put a slow image in because that creates a network connection. I've added this to the testcase.
I'm sure this is a dup of one of my bugs, but I can't find the bug...
Dup of bug 81980 "doc.open()/doc.write() without doc.close() does not stop throbber". Please reopen if you don't agree. *** This bug has been marked as a duplicate of 81980 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified that this is a dupe of bug # 81980
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.