зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1345773 - Don't call updatePreview for TabAttrModified events for the "select" attribute, r=dao
MozReview-Commit-ID: 9GSnGxJoNne --HG-- extra : rebase_source : 0ecdc19cc6d28c60ab8cc13447db1186225dbb56
This commit is contained in:
Родитель
39d5de7cfe
Коммит
d18ed51d75
|
@ -474,10 +474,10 @@ var ctrlTab = {
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче