Skip to content

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

@Bringoff

Description

@Bringoff

Preliminary Checks

  • I have read and understood the important section above.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.
  • I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

By default, Firefox copies Unicode urls to clipboard using punycode. However, there is an about:config flag that changes this behavior, browser.urlbar.decodeURLsOnCopy. After setting it to true, if I select url in address bar and copy it from there, unicode urls are copied as-is. However, when I use Cmd+Shift+C shortcut or press Copy button to the left of the address bar, copied url still contains punycode.

Example url: https://uk.wikipedia.org/wiki/Ефект_Мандели
Cmd+C from address bar: https://uk.wikipedia.org/wiki/Ефект_Мандели
Cmd+Shift+C: https://uk.wikipedia.org/wiki/%D0%95%D1%84%D0%B5%D0%BA%D1%82_%D0%9C%D0%B0%D0%BD%D0%B4%D0%B5%D0%BB%D0%B8

Expected behavior

Urls copied using Cmd+Shift+C shortcut don't contain punycode when decodeURLsOnCopy is enabled

Actual behavior

Urls copied using Cmd+Shift+C shortcut still contain punycode when decodeURLsOnCopy is enabled

Steps to reproduce

  • Go to about:config
  • Set browser.urlbar.decodeURLsOnCopy to true
  • Go to https://uk.wikipedia.org/wiki/Ефект_Мандели (or any other url that contains non-ascii characters)
  • Copy url using Cmd+Shift+C shortcut
  • Paste copied url back into address bar
  • It will look like https://uk.wikipedia.org/wiki/%D0%95%D1%84%D0%B5%D0%BA%D1%82_%D0%9C%D0%B0%D0%BD%D0%B4%D0%B5%D0%BB%D0%B8 and not https://uk.wikipedia.org/wiki/Ефект_Мандели

Screenshots and videos

Screen.Recording.2026-05-11.at.13.39.12.mov

Version

1.19.12b

What platform are you seeing the problem on?

macOS - aarch64

What component is this issue related to?

URL Bar

Relevant log output if applicable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions