Simple Javascript Bookmark Causes Infinite Load

RESOLVED INVALID

Status

()

--
major
RESOLVED INVALID
10 years ago
10 years ago

People

(Reporter: reelix, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)

A simple bookmark creates an infinite loading tab.

Reproducible: Always

Steps to Reproduce:
1. Create a new bookmark, and set it's location to:

javascript:document.write("<script>alert('Infinite Loading - Press OK');</script>");

2. Middle-Click the resultant bookmark, to create a new tab, that pops up a Message Box

3. Click "Ok" in the resultant message box, and realize that the page is loading...

Actual Results:  
The Newly created tab never finishes loading.

Expected Results:  
The Newly created tab displays the message, and stops loading.

Comment 1

10 years ago
Can confirm that this works on Firefox 3.0.3 on Leopard.

You don't need to create a new tab simply selecting the bookmark and having it load is enough to send Firefox into an infinite loop.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: sg:dos
It's not hanging the product or really loading anything. You've called document.write() which opens the document, but it's not finished loading. You have to call document.close() to trigger the onload event that stops the throbber.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INVALID
Whiteboard: sg:dos
You need to log in before you can comment on or make changes to this bug.