Closed
Bug 1445994
Opened 6 years ago
Closed 6 years ago
Name variable to make it clear it's keeping a reference alive
Categories
(Core :: DOM: Content Processes, enhancement, P3)
Core
DOM: Content Processes
Tracking
()
RESOLVED
FIXED
mozilla64
People
(Reporter: Alex_Gaynor, Assigned: dpino, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(1 file, 1 obsolete file)
1.41 KB,
patch
|
jld
:
review+
|
Details | Diff | Splinter Review |
https://searchfox.org/mozilla-central/source/dom/ipc/ContentParent.cpp#1519 it is not clear that this RefPtr is being used to keep the reference alive. We should name it |kungFuDeathGrip|, which is apparently our usual name for this.
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Mentor: spohl.mozilla.bugs
Keywords: good-first-bug
Hey, I was wondering if this is still open? And if renaming it to kungFuDeathGrip was a joke? -Thanks
Flags: needinfo?(spohl.mozilla.bugs)
Comment 2•6 years ago
|
||
(In reply to Rahevin from comment #1) > Hey, I was wondering if this is still open? The line number from comment 0 has changed, but this is still an issue: https://dxr.mozilla.org/mozilla-central/rev/dc1868d255be744a7d2d462216be205086cc60af/dom/ipc/ContentParent.cpp#1513 We should fix all similar issues in this file, if there are any. > And if renaming it to kungFuDeathGrip was a joke? An explanation for this variable name was given in comment 0.
Flags: needinfo?(spohl.mozilla.bugs)
Comment 3•6 years ago
|
||
So all that needs to be done is changing the name of the variable? I am sorry if I sound lame, I am quite new to this.
Flags: needinfo?(agaynor)
Comment 5•6 years ago
|
||
So is there anything I can do to help? If yes, can you please guide me on how to start.
Comment 6•6 years ago
|
||
Here are instructions on how to build Firefox: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build#Building_Firefox_for_the_Desktop ... and here are instructions on how to write your first patch: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch Let me know if you have any questions.
Assignee | ||
Comment 7•6 years ago
|
||
It seems rhapsodic123 has been inactive since last time showed interest in fixing this issue, so I decided to send a patch. In the patch I renamed the spotted variable in the bug report as well as another `RefPtr` in `DelayedDeleteContentParentTask`. It seems that variable is used just for keeping a reference, so I thought is a similar case (but I'm not sure).
Attachment #9016752 -
Flags: review?(spohl.mozilla.bugs)
Comment 8•6 years ago
|
||
Comment on attachment 9016752 [details] [diff] [review] Bug-1445994-Rename-variables-to-kungFuDeathPtr-to-ma.patch Review of attachment 9016752 [details] [diff] [review]: ----------------------------------------------------------------- nit: `kungFuDeathGrip`, not `kungFuDeathPtr`. Thank you for taking this on. This looks good to me but will need a review from someone on the IPC module owner/peers list. Sending to Jed for a review.
Attachment #9016752 -
Flags: review?(spohl.mozilla.bugs)
Attachment #9016752 -
Flags: review?(jld)
Attachment #9016752 -
Flags: feedback+
Assignee | ||
Comment 9•6 years ago
|
||
Thanks for the review Stephen. Updated the patch replacing 'KungFuDeathPtr' for 'KungFuDeathGrip'. Updated commit message too.
Attachment #9016752 -
Attachment is obsolete: true
Attachment #9016752 -
Flags: review?(jld)
Attachment #9017346 -
Flags: review?(jld)
Updated•6 years ago
|
Attachment #9017346 -
Flags: review?(jld) → review+
Comment 10•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee8274a9b6c09241f0da9b6ed3b83a95b8091574 Bug 1445994: Rename variables to kungFuDeathGrip to make it clear it's keeping a reference alive. r=jld
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ee8274a9b6c0
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Assignee: nobody → dpino
Updated•6 years ago
|
status-firefox62:
--- → wontfix
status-firefox63:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•