Bug 718465 - Part 1: Only send SELECTED tab event if the tab has changed. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-10-18 00:01:01 -07:00
parent f79f5f15fd
commit bb97646430

View File

@ -130,7 +130,7 @@ public class Tabs implements GeckoEventListener {
final Tab tab = mTabs.get(id);
// This avoids a NPE below, but callers need to be careful to
// handle this case
if (tab == null)
if (tab == null || oldTab == tab)
return null;
mSelectedTab = tab;