Closed
Bug 575639
Opened 14 years ago
Closed 14 years ago
[e10s] clean up GetBaseURIFromPackage signature
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
Tracking | Status | |
---|---|---|
fennec | - | --- |
People
(Reporter: dougt, Assigned: MikeK)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
jdm
:
review+
dougt
:
approval2.0+
|
Details | Diff | Splinter Review |
>@@ -693,157 +331,44 @@ nsChromeRegistry::ConvertChromeURL(nsIUR
>+ rv = GetBaseURIFromPackage(package, provider, path, &baseURI);
That's a really confusing signature. Followup to just return nsIURI?
Updated•14 years ago
|
tracking-fennec: --- → ?
Comment 1•14 years ago
|
||
being that this is just code clean up, I don't think it should block
tracking-fennec: ? → 2.0-
Assignee | ||
Comment 2•14 years ago
|
||
Currently the code can return:
NS_ERROR_NOT_INITIALIZED
NS_ERROR_FAILURE
NS_OK
and in the NS_OK case, baseURI might be set to nsnull or a value actually pointing at something.
Are we sure we want it to just be able to return nsnull or a value?
Attachment #482830 -
Flags: feedback?(doug.turner)
Reporter | ||
Updated•14 years ago
|
Attachment #482830 -
Flags: feedback?(doug.turner) → review?(bzbarsky)
Comment 3•14 years ago
|
||
> + NS_ASSERTION(baseURI, "GetBaseURIFromPackage returned nsnull");
Uh... why the heck is that ok?
Shouldn't the original author of this code be reviewing this, by the way?
Comment 4•14 years ago
|
||
And also as far as comment 1 goes... this is "just code cleanup" that was a precondition for a patch landing.
Things like that are why we shouldn't allow the "land now, address comments later" crap.
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #3)
> > + NS_ASSERTION(baseURI, "GetBaseURIFromPackage returned nsnull");
>
> Uh... why the heck is that ok?
>
> Shouldn't the original author of this code be reviewing this, by the way?
Good question, which behavior would you prefer, returning an error on nsnull or ignoring the result letting the existing code cope with it?
Comment 6•14 years ago
|
||
I wrote the code that this review comment was about. GetBaseURIFromPackage callers handle a null baseURI case, so scratch the assertion, please.
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> I wrote the code that this review comment was about. GetBaseURIFromPackage
> callers handle a null baseURI case, so scratch the assertion, please.
So it is ok that it doesn't return an error in the cases that it did before? (see comment #2)
Comment 8•14 years ago
|
||
Yes, it's fine.
Comment 9•14 years ago
|
||
Comment on attachment 482830 [details] [diff] [review]
Change as requested (fits m-c from Oct 13 2010)
I hear a volunteer!
Attachment #482830 -
Flags: review?(bzbarsky) → review?(josh)
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> Comment on attachment 482830 [details] [diff] [review]
> Change as requested (fits m-c from Oct 13 2010)
>
> I hear a volunteer!
Wait 10-20 min, and I'll have an updated patch without the assert
Assignee | ||
Comment 11•14 years ago
|
||
Attachment #482830 -
Attachment is obsolete: true
Attachment #482935 -
Flags: review?
Attachment #482830 -
Flags: review?(josh)
Assignee | ||
Updated•14 years ago
|
Attachment #482935 -
Flags: review?
Assignee | ||
Comment 12•14 years ago
|
||
Attachment #482935 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Attachment #482936 -
Flags: review?(josh)
Updated•14 years ago
|
Assignee: nobody → mkristoffersen
Updated•14 years ago
|
Attachment #482936 -
Flags: review?(josh) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 13•14 years ago
|
||
Comment on attachment 482936 [details] [diff] [review]
Now without the assert, but otherwise the same as preivous patch
minor change, addresses bz review comments.
Attachment #482936 -
Flags: approval2.0+
Comment 14•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Updated•14 years ago
|
Keywords: checkin-needed
Updated•14 years ago
|
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in
before you can comment on or make changes to this bug.
Description
•