Bug 1459994 - Backed out changeset a1410381eac1 for being a temporary fix. a=backout
authorJorg K <jorgk@jorgk.com>
Thu, 27 Sep 2018 22:40:29 +0200
changeset 33248 a314b2757253f96e4b523cfc83d9bb6e1e5b1da4
parent 33247 5664e476f06cdab4ccf1cea2c6e663298909e7b3
child 33249 2d45d62f063c8ca880ab903cb4b44879bcdd0167
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersbackout
bugs1459994
Bug 1459994 - Backed out changeset a1410381eac1 for being a temporary fix. a=backout
mail/base/content/tabmail.xml
--- a/mail/base/content/tabmail.xml
+++ b/mail/base/content/tabmail.xml
@@ -2079,65 +2079,16 @@
             if (this.childNodes.length == 1)
               this.mCollapseToolbar.collapsed = val;
             this._mAutoHide = val;
           }
           return val;
         ]]></setter>
       </property>
 
-      <!-- Override the selectedIndex property of tabs since it stopped sending
-           the "select" event in bug 1456530. -->
-      <property name="selectedIndex">
-        <getter>
-        <![CDATA[
-          const tabs = this.childNodes;
-          for (var i = 0; i < tabs.length; i++) {
-            if (tabs[i].selected)
-              return i;
-          }
-          return -1;
-        ]]>
-        </getter>
-
-        <setter>
-        <![CDATA[
-          var tab = this.getItemAtIndex(val);
-          if (tab) {
-            var alreadySelected = tab.selected;
-
-            Array.forEach(this.childNodes, function(aTab) {
-              if (aTab.selected && aTab != tab)
-                aTab._selected = false;
-            });
-            tab._selected = true;
-
-            this.setAttribute("value", tab.value);
-
-            let linkedPanel = this.getRelatedElement(tab);
-            if (linkedPanel) {
-              this.tabbox.setAttribute("selectedIndex", val);
-
-              // This will cause an onselect event to fire for the tabpanel
-              // element.
-              this.tabbox.tabpanels.selectedPanel = linkedPanel;
-            }
-
-            if (!alreadySelected) {
-              // Fire an onselect event for the tabs element.
-              var event = document.createEvent("Events");
-              event.initEvent("select", true, true);
-              this.dispatchEvent(event);
-            }
-          }
-          return val;
-        ]]>
-        </setter>
-      </property>
-
       <method name="_updateCloseButtons">
         <body><![CDATA[
           // modes for tabstrip
           // 0 - activetab  = close button on active tab only
           // 1 - alltabs    = close buttons on all tabs
           // 2 - noclose    = no close buttons at all
           // 3 - closeatend = close button at the end of the tabstrip
           switch (this.mCloseButtons) {