summaryrefslogtreecommitdiffstats
path: root/browser/base/content/tabbrowser-tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/tabbrowser-tabs.js')
-rw-r--r--browser/base/content/tabbrowser-tabs.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/browser/base/content/tabbrowser-tabs.js b/browser/base/content/tabbrowser-tabs.js
index 7784e74ed3..9b30584077 100644
--- a/browser/base/content/tabbrowser-tabs.js
+++ b/browser/base/content/tabbrowser-tabs.js
@@ -125,23 +125,14 @@
this.tabbox.tabpanels.setAttribute("async", "true");
}
- this.configureTooltip = () => {
- // fall back to original tooltip behavior if pref is not set
- if (this._showCardPreviews) {
- this.tooltip = null;
- } else {
- this.tooltip = "tabbrowser-tab-tooltip";
- this._previewPanel = null;
- }
- };
XPCOMUtils.defineLazyPreferenceGetter(
this,
"_showCardPreviews",
TAB_PREVIEW_PREF,
- false,
- () => this.configureTooltip()
+ false
);
- this.configureTooltip();
+ this.tooltip = "tabbrowser-tab-tooltip";
+ this._previewPanel = null;
}
on_TabSelect() {