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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.7beta
People
(Reporter: jwkbugzilla, Assigned: bzbarsky)
References
()
Details
Attachments
(1 file)
2.53 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•21 years ago
|
||
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,'')
Assignee | ||
Comment 2•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #141408 -
Flags: superreview?(jst)
Attachment #141408 -
Flags: review?(jst)
Comment 3•21 years ago
|
||
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 | ||
Updated•21 years ago
|
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
Assignee | ||
Comment 4•21 years ago
|
||
Fix checked in for 1.7b
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•