Bug 1555943 - Update outdated comment referring to XBL field behavior, r=dao

Differential Revision: https://phabricator.services.mozilla.com/D33268
This commit is contained in:
Alexander Surkov
2019-06-01 21:53:36 +00:00
parent 886889fb23
commit 973c7180be

View File

@@ -36,6 +36,8 @@ class MozTabbrowserTab extends MozElements.MozTab {
this.mOverCloseButton = false;
this.mCorrespondingMenuitem = null;
this.closing = false;
}
static get inheritedAttributes() {
@@ -417,12 +419,6 @@ class MozTabbrowserTab extends MozElements.MozTab {
}
}
/**
* While it would make sense to track this in a field, the field will get nuked
* once the node is gone from the DOM, which causes us to think the tab is not
* closed, which causes us to make wrong decisions. So we use an expando instead.
* <field name="closing">false</field>
*/
_mouseenter() {
if (this.hidden || this.closing) {
return;