From f84278317f9e5b3cb9adb6b1104597da1ff9371d Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Mon, 14 Sep 2026 15:03:58 +0200 Subject: [PATCH] gh-15400: Fixed duplicate `paste and go` items (gh-15401) --- src/zen/common/modules/ZenUIManager.mjs | 2 -- src/zen/drag-and-drop/ZenDragAndDrop.js | 26 ++++++++----------------- src/zen/tabs/zen-tabs/vertical-tabs.css | 4 ++-- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/zen/common/modules/ZenUIManager.mjs b/src/zen/common/modules/ZenUIManager.mjs index 4870deb16..9d6a829f2 100644 --- a/src/zen/common/modules/ZenUIManager.mjs +++ b/src/zen/common/modules/ZenUIManager.mjs @@ -1587,8 +1587,6 @@ window.gZenVerticalTabsManager = { return; } gURLBar._initCopyCutController(); - gURLBar._initPasteAndGo(); - gURLBar._initStripOnShare(); gURLBar.updatePlaceholder(); }, diff --git a/src/zen/drag-and-drop/ZenDragAndDrop.js b/src/zen/drag-and-drop/ZenDragAndDrop.js index f75ec69a1..b66dd9331 100644 --- a/src/zen/drag-and-drop/ZenDragAndDrop.js +++ b/src/zen/drag-and-drop/ZenDragAndDrop.js @@ -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; diff --git a/src/zen/tabs/zen-tabs/vertical-tabs.css b/src/zen/tabs/zen-tabs/vertical-tabs.css index 471b17aaa..9b571af60 100644 --- a/src/zen/tabs/zen-tabs/vertical-tabs.css +++ b/src/zen/tabs/zen-tabs/vertical-tabs.css @@ -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 */