Bug 1532719 - Reset _pinnedUnscrollable flag when unpinning a tab. r=Gijs a=lizzard
authorDão Gottwald <dao@mozilla.com>
Thu, 07 Mar 2019 11:47:26 +0000
changeset 516343 0b7f3caba2aa
parent 516342 93d78ef4e591
child 516344 4ed0c8d33336
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lizzard
bugs1532719
milestone66.0
Bug 1532719 - Reset _pinnedUnscrollable flag when unpinning a tab. r=Gijs a=lizzard Differential Revision: https://phabricator.services.mozilla.com/D22474
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -617,16 +617,17 @@ window._gBrowser = {
 
   unpinTab(aTab) {
     if (!aTab.pinned)
       return;
 
     this.moveTabTo(aTab, this._numPinnedTabs - 1);
     aTab.removeAttribute("pinned");
     aTab.style.marginInlineStart = "";
+    aTab._pinnedUnscrollable = false;
     this._updateTabBarForPinnedTabs();
     this._notifyPinnedStatus(aTab);
   },
 
   previewTab(aTab, aCallback) {
     let currentTab = this.selectedTab;
     try {
       // Suppress focus, ownership and selected tab changes