Bug 1345773 - Don't call updatePreview for TabAttrModified events for the "select" attribute, r=dao
MozReview-Commit-ID: 9GSnGxJoNne
--- a/browser/base/content/browser-ctrlTab.js
+++ b/browser/base/content/browser-ctrlTab.js
@@ -469,20 +469,20 @@ var ctrlTab = {
},
handleEvent: function ctrlTab_handleEvent(event) {
switch (event.type) {
case "SSWindowRestored":
this._initRecentlyUsedTabs();
break;
case "TabAttrModified":
- // tab attribute modified (i.e. label, busy, image, selected)
+ // tab attribute modified (i.e. label, busy, image)
// update preview only if tab attribute modified in the list
if (event.detail.changed.some(
- (elem, ind, arr) => ["label", "busy", "image", "selected"].includes(elem))) {
+ (elem, ind, arr) => ["label", "busy", "image"].includes(elem))) {
for (let i = this.previews.length - 1; i >= 0; i--) {
if (this.previews[i]._tab && this.previews[i]._tab == event.target) {
this.updatePreview(this.previews[i], event.target);
break;
}
}
}
break;