mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 20:13:00 +00:00
Bug 718465 - Part 1: Only send SELECTED tab event if the tab has changed. r=mfinkle
This commit is contained in:
parent
f79f5f15fd
commit
bb97646430
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user