Closed
Bug 1301629
Opened 8 years ago
Closed 8 years ago
netwerk/* comment doesn't match the parameter names
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: upanchak, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: clang-analyzer, Whiteboard: [good first bug][lang=C++])
Attachments
(1 file, 2 obsolete files)
2.69 KB,
patch
|
ethan
:
review+
|
Details | Diff | Splinter Review |
This is a trivial bug. This has been found by clang-tidy ( http://clang.llvm.org/extra/clang-tidy/checks/misc-argument-comment.html ). The idea is to give an easy bug for someone who wants to understand how to contribute to Firefox. netwerk/cookie/nsCookieService.cpp @ Line 35 argument name 'holdsWeak' in comment does not match parameter name 'ownsWeak'
Reporter | ||
Updated•8 years ago
|
Summary: netwerk/* Comments doesn't match the parameter names → netwerk/* comment doesn't match the parameter names
Assignee | ||
Comment 1•8 years ago
|
||
Hi, I am a newbie to Mozilla and will be working on this bug as there is no assignee. Thanks.
Updated•8 years ago
|
Assignee: nobody → upanchak
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
Hi Sylvestre, as this is a trivial change that has been verified with mac build and mach run. Any suggestions on additional tests that I should run? Any idea how I can run clang-tidy to verify that the error is indeed fixed? If I should be asking these questions to someone else, please let me know as well. Thanks in advance.
Reporter | ||
Comment 3•8 years ago
|
||
Build is enough :)
Assignee | ||
Comment 4•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8791341 -
Flags: review?(sledru)
Assignee | ||
Comment 5•8 years ago
|
||
Hi Sylvestre, I have uploaded a patch and requested a review from you. Is there anyone else I should request review from? Thanks.
Reporter | ||
Comment 6•8 years ago
|
||
Comment on attachment 8791341 [details] [diff] [review] Fix incorrect parameter name in comments I cannot review this code but you will find a review here: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_4_-_Get_your_code_reviewed
Attachment #8791341 -
Flags: review?(sledru) → feedback+
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8791341 [details] [diff] [review] Fix incorrect parameter name in comments Hi, I am requesting this review to you as you added the line in question per hg blame. Thank you in advance. Please let me know if this needs to be assigned to someone else.
Attachment #8791341 -
Flags: review?(ettseng)
Comment 8•8 years ago
|
||
Comment on attachment 8791341 [details] [diff] [review] Fix incorrect parameter name in comments Hi Umesh, Welcome to Bugzilla! Thanks for your contribution. :) Actually that line was added by jduell, not me. However the change is only one word in comment, I believe it's fine. r=me.
Attachment #8791341 -
Flags: review?(ettseng) → review+
Comment 9•8 years ago
|
||
Sylvestre, I see in total there are four such misspellings (holdsWeak) on DXR. Did you file bugs for each of them? If not, maybe we should fix all of them here. What do you think?
Flags: needinfo?(sledru)
Reporter | ||
Comment 10•8 years ago
|
||
Ethan, I filed bugs for the mismatch only, not for the typo. We should probably open a new bug for the followup, this will be easier for everyone.
Flags: needinfo?(sledru)
Comment 11•8 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #10) > Ethan, I filed bugs for the mismatch only, not for the typo. > We should probably open a new bug for the followup, this will be easier for > everyone. Sorry I used the wrong word (misspelling) which caused misunderstanding. Actually I meant mismatch, not typo. Search the word "holdsWeak" on DXR, there will be 4 results. They are all codes which call nsIObserverService::AddObserver() and they all mismatch the name of the third parameter. I was simply saying, they are the same bug.
Reporter | ||
Comment 12•8 years ago
|
||
ok, we should do it in the same bug them :) Umesh, I just added keywords which means two things: * we are asking help to a sheriff to get your patch landed in our code. * the bug should not be fixed as we will have follow up. Could you care take of the other issues that Ethan is talking about? dxr= http://dxr.mozilla.org/
Flags: needinfo?(upanchak)
Keywords: checkin-needed,
leave-open
Assignee | ||
Comment 13•8 years ago
|
||
Thanks folks for the review and follow-up. I will address the other locations with the same typo and upload another patch.
Assignee | ||
Comment 14•8 years ago
|
||
Assignee | ||
Comment 15•8 years ago
|
||
Comment on attachment 8792541 [details] [diff] [review] Fix incorrect parameter name in comments Hi Ethan, I have made the suggested change. Please let me know if you will be able to look at this change or If I need to submit the review to someone else. Thanks.
Attachment #8792541 -
Flags: review?(ettseng)
Comment 17•8 years ago
|
||
Comment on attachment 8792541 [details] [diff] [review] Fix incorrect parameter name in comments Review of attachment 8792541 [details] [diff] [review]: ----------------------------------------------------------------- Let's go land your first bug! :)
Attachment #8792541 -
Flags: review?(ettseng) → review+
Updated•8 years ago
|
Keywords: leave-open
Assignee | ||
Comment 18•8 years ago
|
||
Thanks much Ethan for the review. Based on the developer guide, I need to run tests. However, Sylvestre indicated that build is enough for this as it is a simple comment change. He has also marked the bug as 'checkin-needed'. So, as per developer guide, the bug will get checked in by someone with the correct permissions and nothing more to be done by my side for this bug.
Comment 19•8 years ago
|
||
(In reply to Umesh Panchaksharaiah from comment #18) Almost, except one thing. You should update your patch by adding "r=ettseng" into the end of the commit comment message. (Check the commit history you'll know more clearly about what the message looks like.) Meanwhile, obsolete the previous two patches. Then it's done from your side.
Assignee | ||
Comment 20•8 years ago
|
||
Attachment #8792953 -
Flags: review?(ettseng)
Assignee | ||
Updated•8 years ago
|
Attachment #8791341 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8792541 -
Attachment is obsolete: true
Assignee | ||
Comment 21•8 years ago
|
||
Thanks Ethan. I updated the commit message and uploaded another patch. It looks like the previous patch have been marked as obsoleted already. I guess I am done now for this bug fix.
Updated•8 years ago
|
Attachment #8792953 -
Flags: review?(ettseng) → review+
Comment 22•8 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/5a199ae8917c Fix incorrect parameter name in comments. r=ettseng
Keywords: checkin-needed
Comment 23•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5a199ae8917c
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•