Bug 880277 - Bug 649216 (unnecessary delay when clicking tab close buttons sequentially) regressed on UX. r=fryn.
authorMike Conley <mconley@mozilla.com>
Wed, 19 Jun 2013 19:20:55 -0400
changeset 164506 bc8b83f7a57ea0910e9407312b03fd5ef9785f4a
parent 164505 bdf769ab540ff594faa9fb5447d4bfebfc4627b4
child 164507 48334123e0c7815f790ca3cc5909ff2cdbcafdba
push id4703
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 20:24:19 +0000
treeherdermozilla-aurora@20af7fbd96c1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfryn
bugs880277, 649216
milestone24.0a1
Bug 880277 - Bug 649216 (unnecessary delay when clicking tab close buttons sequentially) regressed on UX. r=fryn.
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -4275,17 +4275,17 @@
          * with the tabbar as its event target (and explicit/originalTarget),
          * which treats that as a mouse gesture for opening a new tab.
          * In this context, we're manually blocking the dblclick event
          * (see dblclick handler).
          */
         var clickedOnce = false;
         function enableDblClick(event) {
           var target = event.originalTarget;
-          if (target.className == 'tab-close-button')
+          if (target.classList.contains("tab-close-button"))
             target._ignoredClick = true;
           if (!clickedOnce) {
             clickedOnce = true;
             return;
           }
           tabContainer._blockDblClick = false;
           tabContainer.removeEventListener("click", enableDblClick, true);
         }