Skip to content

Conversation

@0nko
Copy link
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

Adds long‑press copy for custom tab URL with minimal UI feedback and tests.

  • In OmnibarLayout, long‑press on custom tab toolbar triggers onCustomTabUrlLongClicked(); handles Command.CopyUrlToClipboard by using ClipboardInteractor and showing urlCopiedToClipboard toast when needed
  • In OmnibarLayoutViewModel, adds CopyUrlToClipboard command and onCustomTabUrlLongClicked() to emit it when a URL is present
  • Adds localized urlCopiedToClipboard strings across languages
  • Tests verify command emission for valid/empty URLs

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

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

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

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

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