Closed
Bug 634936
Opened 14 years ago
Closed 14 years ago
Crash [@ nsFocusManager::Init ]
Categories
(Core :: General, defect)
Tracking
()
VERIFIED
FIXED
mozilla6
People
(Reporter: jdm, Assigned: emorley)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
2.39 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
There are consumers of nsContentUtils::GetPrefBranch which don't null-check the result. This is bad, as nsContentUtils::Init explicitly states that a null pref service is allowed. 484de288-23dc-4490-ad28-8eff22110217 is an example of a crash because of this.
Consumers requiring fixing:
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsImageFrame.cpp#1904
http://mxr.mozilla.org/mozilla-central/source/dom/base/nsFocusManager.cpp#197
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Updated•14 years ago
|
Whiteboard: [good first bug]
Assignee | ||
Comment 2•14 years ago
|
||
Should the nsFocusManager instance return NS_ERROR_FAILURE or just if(prefBranch) ?
Reporter | ||
Comment 3•14 years ago
|
||
I think a straight |if (prefBranch)| will be fine.
Assignee | ||
Comment 4•14 years ago
|
||
Thanks.
Ideas for who to review?
Assignee: nobody → bmo
Status: NEW → ASSIGNED
Reporter | ||
Comment 5•14 years ago
|
||
Comment on attachment 524869 [details] [diff] [review]
Patch v1
I think jst's a good candidate here.
Attachment #524869 -
Flags: review?(jst)
Assignee | ||
Updated•14 years ago
|
Version: unspecified → Trunk
Updated•14 years ago
|
Attachment #524869 -
Flags: review?(jst) → review+
Comment 7•14 years ago
|
||
And thanks, Ed!
http://hg.mozilla.org/mozilla-central/rev/1c62fb90d4dd
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Assignee | ||
Comment 8•14 years ago
|
||
No worries, thanks for the checkin :-)
Whiteboard: [good first bug]
Assignee | ||
Comment 9•14 years ago
|
||
All instances of:
http://mxr.mozilla.org/mozilla-central/search?string=nsContentUtils::GetPrefBranch%28%29
...null check prefBranch.
-> Verified.
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
Crash Signature: [@ nsFocusManager::Init ]
You need to log in
before you can comment on or make changes to this bug.
Description
•