Not responsive when handling infinite reload off a zero-timeout interval

NEW
Unassigned

Status

()

P5
normal
15 years ago
6 months ago

People

(Reporter: sali, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

Very likely that in the following code, the <object>... </object> 
part does not work, the only way out is to quit the browser. It generates a
large number of visits, in an infinite loop-like manner.
<HTML>
<HEAD>

<TITLE>Counter demo</title><head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://andrewsali.no-ip.info";
window.location.href= url640x480;

}
function launch()
    {
    idea = window.setInterval("redirectPage()", 20000);
    }


// End -->
function hello() {
	document.all.dot.style.pixelTop+=3;
}
</SCRIPT>
<body bgcolor="#000000">
<object type="text/x-scriptlet" width="150" height="40" 
data="http://193.6.17.127:8080/examples/jsp/counter.jsp?name=FrontSide">
</object>
<!--#include file="counter.html"-->


Reproducible: Always

Steps to Reproduce:
1.Visit http://www.fazekas.hu/~vakond2/
2.
3.

Actual Results:  
Infinite loop of visits of the same site, no counter is ever visible.

Expected Results:  
DIsplay a graphical counter of the number of visits of that page.

This was experienced with versions of mozilla 1.3.1, 1.4, and the one I'm using
roght now. However, the ancient version 0.98 seems working well.

Comment 1

15 years ago
http://193.6.17.127:8080/examples/jsp/counter.jsp?name=FrontSide doesn't seem to
send any data.

IE6 behaves the same in the way it never finshes loading page, however IE6 is
more responsive than Mozilla in that case.
The real problem here is the following code:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://193.6.17.10:8080/examples/jsp/counter.jsp?name=FrontSide";
window.location.href= url640x480;

}
function launch()
    {
    idea = window.setInterval("redirectPage()", 0);
    }


// End -->
function hello() {
        document.all.dot.style.pixelTop+=3;
}
</SCRIPT>
<body onload = launch()>

which comes after the <object>.  This puts the page into an infinite reload loop
immediately.

Interestingly, in Netscape 4 hitting "stop" quits that loop.  In Mozilla, "stop"
does not affect it and typing a different URL in the URL bar and hitting enter
also does not work.

Ccing some people who may have an idea of how we could improve the user
experience here.  I'd think that at least hitting enter in the urlbar would
immediately cancel all interval timers for the current page....
Status: UNCONFIRMED → NEW
Component: DOM: HTML → DOM
Ever confirmed: true
Summary: Infinite loop in handling <object>...</object> → Not responsive when handling infinite reload off a zero-timeout interval
Assignee: general → nobody
QA Contact: ian → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.