gh-15400: Fixed duplicate paste and go items (gh-15401)

This commit is contained in:
mr. m
2026-09-14 15:03:58 +02:00
committed by GitHub
parent 4980f3ce18
commit f84278317f
3 changed files with 10 additions and 22 deletions

View File

@@ -1587,8 +1587,6 @@ window.gZenVerticalTabsManager = {
return;
}
gURLBar._initCopyCutController();
gURLBar._initPasteAndGo();
gURLBar._initStripOnShare();
gURLBar.updatePlaceholder();
},

View File

@@ -1062,25 +1062,15 @@
if (draggedTab?.documentGlobal !== window || gReduceMotion) {
return;
}
const elements = (this._dragImageTabs ?? [draggedTab])
.map(elementToMove)
.filter(element => element?.isConnected);
if (!elements.length) {
return;
}
for (const tab of this._dragImageTabs ?? [draggedTab]) {
const element = elementToMove(tab);
const rect = (
element?.isConnected ? element : elements[0]
).getBoundingClientRect();
this.ZenDragAndDropService.addDropLandingRect(
Math.round(window.mozInnerScreenX + rect.left),
Math.round(window.mozInnerScreenY + rect.top),
Math.round(rect.width),
Math.round(rect.height)
);
}
const elements = (this._dragImageTabs ?? [draggedTab]).map(elementToMove);
for (const element of elements) {
const { width, height } = element.getBoundingClientRect();
this.ZenDragAndDropService.addDropLandingRect(
Math.round(element.screenX),
Math.round(element.screenY),
Math.round(width),
Math.round(height)
);
element.style.visibility = "hidden";
}
this._landingElements = elements;

View File

@@ -329,8 +329,8 @@
display: none;
}
&[drag-image] {
border-radius: calc(var(--border-radius-medium) / var(--zen-squircle-value));
&[drag-image] .tab-background {
border-radius: calc(var(--border-radius-medium) / var(--zen-squircle-value)) !important;
}
/* stylelint-disable-next-line stylelint-plugin-mozilla/no-has-selector */