Closed Bug 261950 Opened 21 years ago Closed 21 years ago

JavaScript don't prevent loop of alert()'s

Categories

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

x86
Linux
enhancement
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 61098

People

(Reporter: brunog, Unassigned)

Details

(Whiteboard: [sg:nse])

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817 When some author writes a code with a loop of alerts(like while(1){alert("a");}), the browser executes the script and not provide some option to stop it, disable menus cause the alert window overwrites the main window. Reproducible: Always Steps to Reproduce: 1.Create an HTML document with the JavaScript code while(1){alert("some message");} 2.Load the HTML document into browser Actual Results: I've killed mozilla Expected Results: Maybe detect the loop and show another kind of alert(with a title like "Bad loop JavaScript" and a button like "Disable Script"), maybe don't execute the script, or maybe ask to execute the script.
Whiteboard: DUPEME
Assignee: general → general
Group: security
Component: JavaScript Engine → DOM
QA Contact: pschwartau → ian
Whiteboard: DUPEME → DUPEME [sg:nse]
see bug 61098 or maybe bug 59314. marking as duplicate of the former. *** This bug has been marked as a duplicate of 61098 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Whiteboard: DUPEME [sg:nse] → [sg:nse]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.