Closed Bug 1134940 Opened 9 years ago Closed 9 years ago

Remove Reader_foo function names from method declarations in AboutReader.jsm

Categories

(Toolkit :: Reader Mode, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: Margaret, Assigned: lewis.cowper, Mentored, NeedInfo)

Details

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

Attachments

(1 file, 3 obsolete files)

This is an old convention that pre-dates more useful error logging. Let's update our code.

To fix this bug, just remove the function names in AboutReader, e.g. convert this:
handleEvent: function Reader_handleEvent(aEvent) {

To this:
handleEvent: function(aEvent) {
I'd quite like to handle this, but if someone wants to take it as their first bug, they're more than welcome.
(In reply to Lewis Cowper from comment #1)
> I'd quite like to handle this, but if someone wants to take it as their
> first bug, they're more than welcome.

There are always more bugs, so feel free to take this on if you like! It would be a nice clean-up.
Attached patch reader_foo-patch.diff (obsolete) — Splinter Review
That looks like it should take care of it. :)
Flags: needinfo?(margaret.leibovic)
Comment on attachment 8567263 [details] [diff] [review]
reader_foo-patch.diff

Review of attachment 8567263 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good! In the future, you should set the review? flag on a patch, instead of using needinfo? on the bug. That will help make sure your patch doesn't get lost in the shuffle! :)
Attachment #8567263 - Flags: review+
Assignee: nobody → lewis.cowper
Flags: needinfo?(margaret.leibovic)
Keywords: checkin-needed
Ah, I didn't know whether the review flag was for looking for reviews or responding to them. Thanks for the tip!
Lewis, your patch failed to apply to the lastest fx-team. Could you update your tree to rebase?

I also just landed a few more AboutReader.jsm changes on fx-team, so unfortunately mozilla-central won't be caught up yet.
Flags: needinfo?(lewis.cowper)
Keywords: checkin-needed
Sure! I've not got fx-team locally, so I'll take a bit of time to download and set up, it might be tomorrow by the time I get the chance to sort it out.
Flags: needinfo?(lewis.cowper)
As it turns out, it was somewhat quicker than I originally thought.
Attachment #8567263 - Attachment is obsolete: true
Attachment #8567350 - Flags: review+
Attachment #8567350 - Flags: review+ → review?(margaret.leibovic)
Comment on attachment 8567350 [details] [diff] [review]
fx-team-patch.diff

Review of attachment 8567350 [details] [diff] [review]:
-----------------------------------------------------------------

Hm, this is still failing to apply. Maybe I was too slow to review it and more changes landed since you posted this :(
I'm sorry for all the churn! Would you mind rebasing your patch again? I'll pay close attention and make sure to land it for you quickly before it bit-rots again :)
Flags: needinfo?(lewis.cowper)
Comment on attachment 8567350 [details] [diff] [review]
fx-team-patch.diff

Clearing review while waiting for a new patch.
Attachment #8567350 - Flags: review?(margaret.leibovic)
Bug 1134940 - Modernize ReaderMode function declarations. r?nalexander
Attachment #8665125 - Flags: review?(nalexander)
Comment on attachment 8665125 [details]
MozReview Request: Bug 1134940 - Modernize ReaderMode function declarations. r?nalexander

https://reviewboard.mozilla.org/r/20147/#review18087

Looking good.
Attachment #8665125 - Flags: review?(nalexander) → review+
https://hg.mozilla.org/mozilla-central/rev/5906d37343fa
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment on attachment 8665125 [details]
MozReview Request: Bug 1134940 - Modernize ReaderMode function declarations. r?nalexander

Bug 1134940 - Modernize ReaderMode function declarations. r?nalexander
Attachment #8665125 - Flags: review+ → review?(nalexander)
Bug: 1208626 Add needed parameter to getHistogramById r?rstrong
Attachment #8666189 - Flags: review?(robert.strong.bugs)
Attachment #8666189 - Attachment is obsolete: true
Attachment #8666189 - Flags: review?(robert.strong.bugs)
Attachment #8665125 - Attachment is obsolete: true
Attachment #8665125 - Flags: review?(nalexander)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: