Closed Bug 1146252 Opened 9 years ago Closed 9 years ago

Remove fromTab and toTab properties from "select" events in tabbrowser.xml and tabbox.xml

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: dao, Assigned: johnkang.h, Mentored)

References

Details

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

Attachments

(1 file)

Bug 1135045 set fromTab and toTab properties on "select" events in browser/base/content/tabbrowser.xml and toolkit/content/widgets/tabbox.xml. Then bug 1144782 made us use the "TabSelect" event rather than the "select" event, leaving fromTab and toTab completely unused. So we should remove them.

The relevant code can be found here:

http://hg.mozilla.org/mozilla-central/annotate/e730012260a4/browser/base/content/tabbrowser.xml#l5523

http://hg.mozilla.org/mozilla-central/annotate/e730012260a4/toolkit/content/widgets/tabbox.xml#l667
Did you want every instance of fromTab and toTab, including the enclosing if-else statements removed?
We should just stop setting event.fromTab and event.toTab in the code I pointed to. I'm not sure what if-else statements you mean.
Attached patch bug1146252.diffSplinter Review
Here you go! Please let me know if anything else is required or if I made a mistake. :)
Comment on attachment 8582710 [details] [diff] [review]
bug1146252.diff

Looks good. Thanks!
Attachment #8582710 - Flags: review+
Assignee: nobody → johnkang.h
Keywords: checkin-needed
Great. Could I bother you again for a vouch?
https://mozillians.org/en-US/u/jkang8/
(In reply to John Kang from comment #7)
> Great. Could I bother you again for a vouch?
> https://mozillians.org/en-US/u/jkang8/

done!
https://hg.mozilla.org/mozilla-central/rev/a83feceee78b
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Hi, I'm still learning about contributing to Firefox. Is my patch already checked into the repository or do I need to still do it? Also, how do I have my contributions show up on my GitHub account?

Thanks.
(In reply to John Kang from comment #11)
> Hi, I'm still learning about contributing to Firefox. Is my patch already
> checked into the repository or do I need to still do it?

It has been checked in (comment 9) and merged to mozilla-central (comment 10).

> Also, how do I have my contributions show up on my GitHub account?

Sorry, I have no idea about that. Our primary repository is https://hg.mozilla.org/mozilla-central/. I think there's a mirror on GitHub, but it's read-only. I'm not sure whether that's relevant to your question.
(In reply to Dão Gottwald [:dao] from comment #12)
> (In reply to John Kang from comment #11)
> > Also, how do I have my contributions show up on my GitHub account?
> 
> Sorry, I have no idea about that. Our primary repository is
> https://hg.mozilla.org/mozilla-central/. I think there's a mirror on GitHub,
> but it's read-only. I'm not sure whether that's relevant to your question.

Yes, as soon as that mirror is synced it'll show up as a contribution to mozilla/gecko-dev. In fact, I can already see it listed on your GitHub profile page :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: