Closed Bug 722305 Opened 13 years ago Closed 13 years ago

Remove contentAreaClick's redundant return value

Categories

(Firefox :: General, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Firefox 13

People

(Reporter: dao, Assigned: pookveeraya)

Details

(Whiteboard: [good first bug][mentor=dao][lang=js] )

Attachments

(1 file, 1 obsolete file)

contentAreaClick always returns true. This isn't useful. It should stop returning something and our three callers should stop reading the return value: http://mxr.mozilla.org/mozilla-central/search?string=contentAreaClick%28e
Hi, I'd like to work on this bug. It's my first attempt at fixing bugs. Could someone please mentor me? I already have the source code from https://developer.mozilla.org/En/Simple_Firefox_build. What's next? Make patches and attach them here? Thank you!
(In reply to Veeraya Pupatwibul from comment #1) > What's next? Make patches and attach them here? Yes. :) Have you seen <https://developer.mozilla.org/en/Creating_a_patch>?
(In reply to Veeraya Pupatwibul from comment #1) > Hi, I'd like to work on this bug. It's my first attempt at fixing bugs. > Could someone please mentor me? I already have the source code from > https://developer.mozilla.org/En/Simple_Firefox_build. What's next? Make > patches and attach them here? Thank you! I'll assign it to you. If, for some reason, you don't want to work on this anymore, I can take it ;)
Assignee: nobody → pookveeraya
Attached patch first patch to Bug 722305 (obsolete) — Splinter Review
First patch. Function now doesn't return any value and callers don't read return value anymore. Hope I did it correctly:)
Attachment #595455 - Flags: review?(dao)
Comment on attachment 595455 [details] [diff] [review] first patch to Bug 722305 > // Mark the page as a user followed link. This is done so that history can > // distinguish automatic embed visits from user activated ones. For example > // pages loaded in frames are embed visits and lost with the session, while > // visits across frames should be preserved. > try { > PlacesUIUtils.markPageAsFollowedLink(href); > } catch (ex) { /* Skip invalid URIs. */ } > >- return true; >+ return; > } nit: remove this final return, as it's a no-op now
Attachment #595455 - Flags: review?(dao) → review+
Attached patch 2nd patchSplinter Review
remove the final return
Attachment #595455 - Attachment is obsolete: true
Attachment #595718 - Flags: review?(dao)
Comment on attachment 595718 [details] [diff] [review] 2nd patch perfect, thanks!
Attachment #595718 - Flags: review?(dao) → review+
Keywords: checkin-needed
Whiteboard: [good first bug][mentor=dao][lang=js] → [good first bug][mentor=dao][lang=js] [autoland-try]
Whiteboard: [good first bug][mentor=dao][lang=js] [autoland-try] → [good first bug][mentor=dao][lang=js] [autoland-in-queue]
Autoland Patchset: Patches: 595718 Branch: mozilla-central => try Destination: http://hg.mozilla.org/try/rev/a404e743e1db Try run started, revision a404e743e1db. To cancel or monitor the job, see: https://tbpl.mozilla.org/?tree=Try&rev=a404e743e1db
Try run for a404e743e1db is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=a404e743e1db Results (out of 211 total builds): success: 179 warnings: 18 failure: 14 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/autolanduser@mozilla.com-a404e743e1db
Whiteboard: [good first bug][mentor=dao][lang=js] [autoland-in-queue] → [good first bug][mentor=dao][lang=js]
Keywords: checkin-needed
Target Milestone: --- → Firefox 13
https://hg.mozilla.org/mozilla-central/rev/f8e9d1339b7b Congratulations on your first patch in the tree! Hope to see you on IRC (http://irc.mozilla.org/) in #developers soon :-)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: