Closed Bug 458024 Opened 17 years ago Closed 16 years ago

Simple Javascript Bookmark Causes Infinite Load

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: reelix, Unassigned)

Details

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.
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
Closed: 16 years ago
Resolution: --- → INVALID
Whiteboard: sg:dos
You need to log in before you can comment on or make changes to this bug.