Skip to content

Commit 11a7de2

Browse files
committed
Backed out changeset fe2ffeac3ec2 (bug 1783521) for marionette failure on test_restore_manually.py . CLOSED TREE
1 parent d7e2843 commit 11a7de2

File tree

15 files changed

+0
-498
lines changed

15 files changed

+0
-498
lines changed

browser/app/profile/firefox.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,6 @@ pref("browser.tabs.tooltipsShowPidAndActiveness", true);
907907
pref("browser.tabs.tooltipsShowPidAndActiveness", false);
908908
#endif
909909

910-
pref("browser.tabs.cardPreview.enabled", false);
911-
pref("browser.tabs.cardPreview.delayMs", 1000);
912-
pref("browser.tabs.cardPreview.showThumbnails", true);
913-
914910
pref("browser.tabs.firefox-view", true);
915911
pref("browser.tabs.firefox-view-next", true);
916912
pref("browser.tabs.firefox-view-newIcon", true);

browser/base/content/browser.xhtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@
142142
window.addEventListener("DOMContentLoaded",
143143
gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true });
144144
</script>
145-
<script type="module" src="chrome://browser/content/tabpreview/tabpreview.mjs"></script>
146145
</head>
147146
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
148147
# All sets except for popupsets (commands, keys, and stringbundles)

browser/base/content/main-popupset.inc.xhtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,6 @@
412412
<hbox id="ctrlTab-showAll-container" pack="center"/>
413413
</panel>
414414

415-
<html:tab-preview id="tabbrowser-tab-preview" hidden="true" />
416-
417415
<html:template id="pageActionPanelTemplate">
418416
<panel id="pageActionPanel"
419417
class="cui-widget-panel panel-no-padding"

browser/base/content/tabbrowser-tab.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,6 @@
550550
tabToWarm = gBrowser._findTabToBlurTo(this);
551551
}
552552
gBrowser.warmupTab(tabToWarm);
553-
554-
this.dispatchEvent(new CustomEvent("TabHoverStart", { bubbles: true }));
555553
}
556554

557555
_mouseleave() {
@@ -563,7 +561,6 @@
563561
this.linkedBrowser.unselectedTabHover(false);
564562
this.cancelUnselectedTabHoverTimer();
565563
}
566-
this.dispatchEvent(new CustomEvent("TabHoverEnd", { bubbles: true }));
567564
}
568565

569566
setSecondaryTabTooltipLabel(l10nID, l10nArgs) {

browser/base/content/tabbrowser-tabs.js

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// This is loaded into all browser windows. Wrap in a block to prevent
1010
// leaking to window scope.
1111
{
12-
const TAB_PREVIEW_PREF = "browser.tabs.cardPreview.enabled";
13-
1412
class MozTabbrowserTabs extends MozElements.TabsBase {
1513
constructor() {
1614
super();
@@ -22,8 +20,6 @@
2220
this.addEventListener("TabShow", this);
2321
this.addEventListener("TabPinned", this);
2422
this.addEventListener("TabUnpinned", this);
25-
this.addEventListener("TabHoverStart", this);
26-
this.addEventListener("TabHoverEnd", this);
2723
this.addEventListener("transitionend", this);
2824
this.addEventListener("dblclick", this);
2925
this.addEventListener("click", this);
@@ -122,24 +118,6 @@
122118
if (gMultiProcessBrowser) {
123119
this.tabbox.tabpanels.setAttribute("async", "true");
124120
}
125-
126-
this.configureTooltip = () => {
127-
// fall back to original tooltip behavior if pref is not set
128-
this.tooltip = this._showCardPreviews ? null : "tabbrowser-tab-tooltip";
129-
130-
// activate new tooltip behavior if pref is set
131-
document
132-
.getElementById("tabbrowser-tab-preview")
133-
.toggleAttribute("hidden", !this._showCardPreviews);
134-
};
135-
XPCOMUtils.defineLazyPreferenceGetter(
136-
this,
137-
"_showCardPreviews",
138-
TAB_PREVIEW_PREF,
139-
false,
140-
() => this.configureTooltip()
141-
);
142-
this.configureTooltip();
143121
}
144122

145123
on_TabSelect(event) {
@@ -1813,22 +1791,6 @@
18131791

18141792
handleEvent(aEvent) {
18151793
switch (aEvent.type) {
1816-
case "TabHoverStart":
1817-
if (this._showCardPreviews) {
1818-
const previewContainer = document.getElementById(
1819-
"tabbrowser-tab-preview"
1820-
);
1821-
previewContainer.tab = aEvent.target;
1822-
}
1823-
break;
1824-
case "TabHoverEnd":
1825-
if (this._showCardPreviews) {
1826-
const previewContainer = document.getElementById(
1827-
"tabbrowser-tab-preview"
1828-
);
1829-
previewContainer.tab = null;
1830-
}
1831-
break;
18321794
case "mouseout":
18331795
// If the "related target" (the node to which the pointer went) is not
18341796
// a child of the current document, the mouse just left the window.

browser/base/content/test/tabs/browser.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ skip-if = ["true"] # Bug 1616418 Bug 1549985
315315

316316
["browser_tab_play.js"]
317317

318-
["browser_tab_preview.js"]
319-
320318
["browser_tab_tooltips.js"]
321319

322320
["browser_tabswitch_contextmenu.js"]

browser/base/content/test/tabs/browser_tab_preview.js

Lines changed: 0 additions & 126 deletions
This file was deleted.

browser/components/moz.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ DIRS += [
6161
"shell",
6262
"shopping",
6363
"syncedtabs",
64-
"tabpreview",
6564
"tabunloader",
6665
"textrecognition",
6766
"translations",

browser/components/preferences/main.inc.xhtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@
110110
preference="browser.taskbar.previews.enable"/>
111111
#endif
112112

113-
<checkbox id="tabPreviewShowThumbnails" data-l10n-id="settings-tabs-show-image-in-preview"
114-
preference="browser.tabs.cardPreview.showThumbnails" hidden="true"/>
115-
116113
<vbox id="browserContainersbox" hidden="true">
117114
<hbox id="browserContainersExtensionContent"
118115
align="center" class="extension-controlled info-box-container">

browser/components/preferences/main.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ Preferences.addAll([
8686
{ id: "browser.warnOnQuitShortcut", type: "bool" },
8787
{ id: "browser.tabs.warnOnOpen", type: "bool" },
8888
{ id: "browser.ctrlTab.sortByRecentlyUsed", type: "bool" },
89-
{ id: "browser.tabs.cardPreview.enabled", type: "bool" },
90-
{ id: "browser.tabs.cardPreview.showThumbnails", type: "bool" },
9189

9290
// CFR
9391
{
@@ -356,15 +354,6 @@ var gMainPane = {
356354
} catch (ex) {}
357355
}
358356

359-
let thumbsCheckbox = document.getElementById("tabPreviewShowThumbnails");
360-
let cardPreviewEnabledPref = Preferences.get(
361-
"browser.tabs.cardPreview.enabled"
362-
);
363-
let maybeShowThumbsCheckbox = () =>
364-
(thumbsCheckbox.hidden = !cardPreviewEnabledPref.value);
365-
cardPreviewEnabledPref.on("change", maybeShowThumbsCheckbox);
366-
maybeShowThumbsCheckbox();
367-
368357
// The "opening multiple tabs might slow down Firefox" warning provides
369358
// an option for not showing this warning again. When the user disables it,
370359
// we provide checkboxes to re-enable the warning.

browser/components/tabpreview/jar.mn

Lines changed: 0 additions & 7 deletions
This file was deleted.

browser/components/tabpreview/moz.build

Lines changed: 0 additions & 10 deletions
This file was deleted.

browser/components/tabpreview/tabpreview.css

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)