Closed Bug 363552 Opened 18 years ago Closed 17 years ago

Firefox crashes when calling alert() with no arguments

Categories

(Core :: General, defect)

1.8 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: maskiri, Unassigned)

Details

(Keywords: crash, stackwanted)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

when you call alert() in JavaScript without parameters Firefox 2.0 will crash 

Reproducible: Always




just show an empty alert box!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061212 BonEcho/2.0.0.1

Calling |alert()| in the JS Console just throws an exception (which it's not letting me copy for some reason). Can you attach a testcase that crashes or get a Talkback ID for the crash? http://kb.mozillazine.org/Talkback
Severity: major → critical
Keywords: crash, stackwanted
Product: Firefox → Core
QA Contact: general → general
Summary: firefox crashed → Firefox crashes when calling alert() with no arguments
Version: unspecified → 1.8 Branch
Loading javascript:alert() works for me in Firefox 2.0.0.11 and trunk on Linux.
The error console says (which is expected):

Error: uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.alert]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: javascript:alert() :: <TOP_LEVEL> :: line 1"  data: no]

Please reopen the bug when you have a testcase that causes a crash.

-> INCOMPLETE
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.