Closed Bug 1629742 Opened 5 years ago Closed 5 years ago

Copying URL with Cmd-C from Firefox Address Bar Does Not Encode Spaces to %20

Categories

(Firefox :: Untriaged, defect)

75 Branch
Desktop
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: timothy.dement, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

  1. Navigate to a URL containing %20 escape codes for space
  2. Check URL, see spaces instead of %20
  3. Cmd-C (or equivalent) the URL
  4. Paste the URL in Slack (or other programs that don't auto-encode)
  5. URL is split at spaces

Can use https://openwhisk.ng.bluemix.net/api/v1/web/API%20Connect%20Native_apic-on-prem/default/index.http as an example

Actual results:

Because the URL in the address bar is generated with spaces, and these spaces are not encoded to %20 when copied with Cmd-C, any program that auto-fills hyperlinks but doe not auto-encode them will split the URL on the spaces.

Note that if the Copy Link option of the [•••] drop-down in the address bar is used, this problem does not occur (spaces are encoded as %20 to clipboard).

Expected results:

Copying the URL in the address bar with Cmd-C or otherwise should encode spaces as %20, and any other non-html-safe characters to their equivalent encodings as well (not sure if other characters affected).

OS: Unspecified → macOS
Hardware: Unspecified → Desktop

It works as expected for me (cmd+L, cmd+C, paste and the spaces are encoded).

Are you selecting only part of the URL by any chance?

Nope, also can't reproduce it today! Closing.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.