Closed Bug 634936 Opened 14 years ago Closed 14 years ago

Crash [@ nsFocusManager::Init ]

Categories

(Core :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla6

People

(Reporter: jdm, Assigned: emorley)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

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
Whiteboard: [good first bug]
Should the nsFocusManager instance return NS_ERROR_FAILURE or just if(prefBranch) ?
I think a straight |if (prefBranch)| will be fine.
Attached patch Patch v1Splinter Review
Thanks. Ideas for who to review?
Assignee: nobody → bmo
Status: NEW → ASSIGNED
Comment on attachment 524869 [details] [diff] [review] Patch v1 I think jst's a good candidate here.
Attachment #524869 - Flags: review?(jst)
Version: unspecified → Trunk
Attachment #524869 - Flags: review?(jst) → review+
Thanks, Johnny.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
No worries, thanks for the checkin :-)
Whiteboard: [good first bug]
Status: RESOLVED → VERIFIED
Crash Signature: [@ nsFocusManager::Init ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: