Bug 1532719 - Reset _pinnedUnscrollable flag when unpinning a tab. r=Gijs
authorDão Gottwald <dao@mozilla.com>
Thu, 07 Mar 2019 11:47:26 +0000
changeset 520742 2347bb53be3a
parent 520741 f10044217e8f
child 520743 3fb6c01dd2b0
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1532719
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1532719 - Reset _pinnedUnscrollable flag when unpinning a tab. r=Gijs 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
@@ -662,16 +662,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);
     this._maybeUpdateNumPinnedTabsPref();
   },
 
   previewTab(aTab, aCallback) {
     let currentTab = this.selectedTab;
     try {