Skip to content

Quick win: Copy custom tab URL on long click#7408

Open
0nko wants to merge 25 commits intodevelopfrom
feature/ondrej/long-click-copy-url-custom-tab-with-translations
Open

Quick win: Copy custom tab URL on long click#7408
0nko wants to merge 25 commits intodevelopfrom
feature/ondrej/long-click-copy-url-custom-tab-with-translations

Conversation

@0nko
Copy link
Copy Markdown
Member

@0nko 0nko commented Dec 19, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1212330168162876?focus=true

Description

This PR implements URL copying on long-click in the custom tab.

Steps to test this PR

  • Go to Settings -> Developer settings -> Custom tabs
  • Launch a custom tab
  • Long-tap on the address bar
  • Notice a toast pops up, saying the URL was copied
  • Try pasting it somewhere and verify it's correct

Note

Low Risk
Low risk UI change limited to custom tabs: adds a long-press gesture that copies the current URL and shows a toast only when the OS doesn’t provide its own clipboard notification.

Overview
Adds long-press on the custom tab address bar to copy the currently loaded URL to the clipboard.

Wires a new CopyUrlToClipboard command from OmnibarLayoutViewModel to OmnibarLayout, which uses ClipboardInteractor.copyToClipboard and conditionally shows a new urlCopiedToClipboard toast string (localized) when the system won’t show one automatically. Includes unit tests covering non-empty vs empty URL behavior.

Written by Cursor Bugbot for commit cb72a5a. This will update automatically on new commits. Configure here.

Co-authored-by: oruttkay <oruttkay@duckduckgo.com>
@cursor
Copy link
Copy Markdown
Contributor

cursor Bot commented Dec 19, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Co-authored-by: oruttkay <oruttkay@duckduckgo.com>
@cursor
Copy link
Copy Markdown
Contributor

cursor Bot commented Dec 19, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@0nko 0nko force-pushed the feature/ondrej/long-click-copy-url-custom-tab-with-translations branch from cb72a5a to bb8431e Compare March 26, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants