Firefox crashes when calling alert() with no arguments

RESOLVED INCOMPLETE

Status

()

Core
General
--
critical
RESOLVED INCOMPLETE
11 years ago
10 years ago

People

(Reporter: Benhur, Unassigned)

Tracking

({crash, stackwanted})

1.8 Branch
x86
Windows XP
crash, stackwanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
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!

Comment 1

11 years ago
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
Component: General → General
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

Comment 2

10 years ago
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
Last Resolved: 10 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.