Bug 1442960 - Remove workaround for bug 1438504. r?bgrins draft
authorDão Gottwald <dao@mozilla.com>
Wed, 04 Jul 2018 21:53:53 +0200
changeset 814229 2a1704239e0fca8337b0d8d1c74ce79243e594bc
parent 814180 6c0fa9a675c91390ca27664ffb626c56e8afea4d
push id115140
push userdgottwald@mozilla.com
push dateWed, 04 Jul 2018 19:54:29 +0000
reviewersbgrins
bugs1442960, 1438504
milestone63.0a1
Bug 1442960 - Remove workaround for bug 1438504. r?bgrins MozReview-Commit-ID: 9IdoPCF3LA5
browser/base/content/tabbrowser.xml
toolkit/content/widgets/scrollbox.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -51,20 +51,18 @@
         }
 
         tabs._positionPinnedTabs();
       ]]></handler>
       <handler event="overflow"><![CDATA[
         // Ignore overflow events:
         // - from nested scrollable elements
         // - for vertical orientation
-        // - when the window is tiny initially
         if (event.originalTarget != this._scrollbox ||
-            event.detail == 0 ||
-            window.outerWidth <= 1) {
+            event.detail == 0) {
           return;
         }
 
         var tabs = document.getBindingParent(this);
         tabs.setAttribute("overflow", "true");
         tabs._positionPinnedTabs();
         tabs._handleTabSelect(true);
       ]]></handler>
--- a/toolkit/content/widgets/scrollbox.xml
+++ b/toolkit/content/widgets/scrollbox.xml
@@ -565,19 +565,17 @@
 
         this.setAttribute("notoverflowing", "true");
         this._updateScrollButtonsDisabledState();
       ]]></handler>
 
       <handler event="overflow" phase="capturing"><![CDATA[
         // Ignore overflow events:
         // - from nested scrollable elements
-        // - when the window is tiny initially
-        if (event.target != this ||
-            window.outerWidth <= 1) {
+        if (event.target != this) {
           return;
         }
 
         // Ignore events that doesn't match our orientation.
         // Scrollport event orientation:
         //   0: vertical
         //   1: horizontal
         //   2: both