Closed Bug 858671 Opened 11 years ago Closed 11 years ago

do_GetAtom is fallible, but consumers assume it's not

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

As far as I can tell, many consumers of do_GetAtom assume it's infallible, whereas in practice it can return null.

Should we just make this infallible?
(In reply to Boris Zbarsky (:bz) from comment #0)
> Should we just make this infallible?

Yes.
Attachment #733990 - Flags: review?(khuey)
Assignee: nobody → bzbarsky
Whiteboard: [need review]
https://hg.mozilla.org/integration/mozilla-inbound/rev/d37a93af33a8
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla23
https://hg.mozilla.org/mozilla-central/rev/d37a93af33a8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: