Skip to content

gh-14330: Fixes wrong workspace context in the right-click actions menu#14384

Open
daberni wants to merge 1 commit into
zen-browser:devfrom
daberni:fix/workspace-context-menu-target
Open

gh-14330: Fixes wrong workspace context in the right-click actions menu#14384
daberni wants to merge 1 commit into
zen-browser:devfrom
daberni:fix/workspace-context-menu-target

Conversation

@daberni

@daberni daberni commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Populate #contextMenuData from the popup's triggerNode instead of explicitOriginalTarget.closest("toolbarbutton"), which carries no zen-workspace-id, and pass the triggering event to the programmatic openPopup in onActionsCommand so that path sets triggerNode too. Clear #contextMenuData with a single synchronous, popup-scoped popuphidden handler, replacing the deferred double-setTimeout and the duplicate {once:true} clearer.

… actions menu

Populate #contextMenuData from the popup's triggerNode instead of explicitOriginalTarget.closest("toolbarbutton"), which carries no zen-workspace-id, and pass the triggering event to the programmatic openPopup in onActionsCommand so that path sets triggerNode too. Clear #contextMenuData with a single synchronous, popup-scoped popuphidden handler, replacing the deferred double-setTimeout and the
duplicate {once:true} clearer.
@daberni daberni requested a review from mr-cheffy as a code owner June 27, 2026 09:22
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. Improvement labels Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant