Closed Bug 234331 Opened 21 years ago Closed 21 years ago

[FIXr]Mozilla crashes if document.getBoxObjectFor() is called with an undefined parameter

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: jwkbugzilla, Assigned: bzbarsky)

References

()

Details

Attachments

(1 file)

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040211 There is some problem with the parameter check in document.getBoxObjectFor(), Mozilla crashes when getBoxObjectFor() is called with an undefined value as a parameter. That's what Windows XP shows about the crash: AppName: mozilla.exe AppVer: 1.7.20040.21109 ModName: gklayout.dll ModVer: 1.7.20040.21109 Offset: 00118b23 The Incident ID is TB30286417Y (produced with Mozilla 1.4 Build 2003062408 - somehow I can't make the feedback agent work with the newer releases). Reproducible: Always Steps to Reproduce: 1. Open the JavaScript URL Actual Results: The browser crashes
Ok, it doesn't have to be undefined, can be null as well (I suppose it is both converted into NULL in C++ code). The following two function calls produce a crash as well: document.addBinding(null,'') document.removeBinding(null,'')
Attached patch Null-checksSplinter Review
Attachment #141408 - Flags: superreview?(jst)
Attachment #141408 - Flags: review?(jst)
Comment on attachment 141408 [details] [diff] [review] Null-checks r+sr=jst
Attachment #141408 - Flags: superreview?(jst)
Attachment #141408 - Flags: superreview+
Attachment #141408 - Flags: review?(jst)
Attachment #141408 - Flags: review+
Assignee: general → bzbarsky
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Summary: Mozilla crashes if document.getBoxObjectFor() is called with an undefined parameter → [FIXr]Mozilla crashes if document.getBoxObjectFor() is called with an undefined parameter
Target Milestone: --- → mozilla1.7beta
Fix checked in for 1.7b
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: