Skip to content

gh-13653: fix copy url button/shortcut to respect decodeURLsOnCopy spec#13659

Open
ashvwinn wants to merge 7 commits into
zen-browser:devfrom
ashvwinn:decode-urls-on-copy
Open

gh-13653: fix copy url button/shortcut to respect decodeURLsOnCopy spec#13659
ashvwinn wants to merge 7 commits into
zen-browser:devfrom
ashvwinn:decode-urls-on-copy

Conversation

@ashvwinn
Copy link
Copy Markdown

Decodes URL on copy by shortcut/button if browser.urlbar.decodeURLsOnCopy is true
fixes #13653

@ashvwinn ashvwinn requested a review from mr-cheffy as a code owner May 11, 2026 18:15
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 11, 2026
Copy link
Copy Markdown
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashvwinn
Copy link
Copy Markdown
Author

ashvwinn commented May 11, 2026

This uses the URL that the user selected which is not encoded. But getting currentURI directly with the API will return the encoded URI. Unless I am missing something.

@mr-cheffy mr-cheffy changed the title gh13653: fix copy url button/shortcut to respect decodeURLsOnCopy spec gh-13653: fix copy url button/shortcut to respect decodeURLsOnCopy spec May 12, 2026
@mr-cheffy
Copy link
Copy Markdown
Member

I meant the code structure instead of having 2 different calls to "copy to clipboard". Also, checking if the url is a data url

@ashvwinn
Copy link
Copy Markdown
Author

I have made the changes as requested. Do tell me if something is still not right.

@ashvwinn ashvwinn force-pushed the decode-urls-on-copy branch from bd6e15f to d5faeec Compare May 12, 2026 18:26
@ashvwinn ashvwinn requested a review from mr-cheffy May 12, 2026 18:27
Comment thread src/zen/common/modules/ZenCommonUtils.mjs Outdated
@ashvwinn ashvwinn requested a review from mr-cheffy May 12, 2026 19:05
Copy link
Copy Markdown
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashvwinn ashvwinn requested a review from mr-cheffy May 13, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Copy URL" button/shortcut does not respect decodeURLsOnCopy flag

2 participants