Return NS_ERROR_NOT_INITIALIZED instead of NS_ERROR_ILLEGAL_VALUE when the message manager isn't initialized
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
If the mMessageManager field is null, then various message manager functions return NS_ERROR_NULL_POINTER, which gets printed out as NS_ERROR_ILLEGAL_VALUE. When I came across this in bug 1572781, I thought it meant that an invalid argument was being passed in. I think NS_ERROR_NOT_INITIALIZED better reflects that the message manager global isn't actually set up properly. In this particular case, it was actually after it was shutdown instead of before it was initialized, but I think that's close enough.
Assignee | ||
Comment 1•6 years ago
|
||
If the mMessageManager field is null, then various message manager
functions return NS_ERROR_NULL_POINTER, which gets printed out as
NS_ERROR_ILLEGAL_VALUE, which is confusing. NS_ERROR_NOT_INITIALIZED
will better indicate the problem is that that the message manager
itself isn't set up correctly, rather than that the arguments are
invalid.
Comment 3•6 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•