Closed
Bug 1135181
Opened 10 years ago
Closed 10 years ago
Make nsCSSRuleProcessor::Startup() infallible
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
2.43 KB,
patch
|
heycam
:
review+
|
Details | Diff | Splinter Review |
nsCSSRuleProcessor::Startup has a return-type of nsresult (and its caller, nsLayoutStatics::Initialize, has code to handle failure).
But it always returns NS_OK. So it should just return void, and we should drop the failure-handling code.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Flags: in-testsuite-
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 1•10 years ago
|
||
Historical notes:
* It looks like this ::Startup method used to return void, but it was made fallible (w/ return type nsresult) here:
http://hg.mozilla.org/mozilla-central/rev/d03d64716ccd#l2.106
to allow for the "NS_ENSURE_TRUE(gPrivateBrowsingObserver, NS_ERROR_OUT_OF_MEMORY);" line there.
This NS_ENSURE_TRUE line and the nsresult return-type were briefly removed in http://hg.mozilla.org/mozilla-central/rev/9786ae3984b3#l2.105 , but that cset was backed out in http://hg.mozilla.org/mozilla-central/rev/81086dc562b0 .
Later on, the NS_ENSURE_TRUE line was removed again, in http://hg.mozilla.org/mozilla-central/rev/cf941140cded#l1.98 , and that stuck -- but we didn't update the function-signature to make it return void this time.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8567247 -
Flags: review?(cam)
Updated•10 years ago
|
Attachment #8567247 -
Flags: review?(cam) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•