Open Bug 321221 Opened 19 years ago Updated 2 years ago

alert("...") doesn't block <meta http-equiv="refresh" ..>

Categories

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

x86
Windows 2000
defect

Tracking

()

UNCONFIRMED

People

(Reporter: morten, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5


Open the following HTML fragment in Firefox 1.5 and watch if for a couple of minutes. Even though there's a JS alert box, the refresh gets carried through resolving in multiple alert boxes.

<html>
<head>
  <meta http-equiv="refresh" content="30">
  <script>
    function foo() {
      alert("I blocked at "+new Date());
    }
    
    setTimeout("foo()", 10000);
  </script>
</head>
<body>
...
</body>
</html>


Reproducible: Always

Steps to Reproduce:
1. Save enclosed HTML to file
2. Open file in FF
3. Watch for a few minutes

Actual Results:  
Multiple alerts get displayed

Expected Results:  
The first alert should have blocked all operation

An alert actually blocks all operation if it's called directly and not via a timeout.

<html>
<head>
  <meta http-equiv="refresh" content="30">
  <script>
    alert("I blocked at "+new Date());
  </script>
</head>
<body>
...
</body>
</html>
Assignee: nobody → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
The refresh happens on OS X also, but only one pop-up appears (so the multiple alert boxes is not on all platforms).
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
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: