Open Bug 1770723 Opened 3 years ago Updated 1 year ago

Copying from Address Bar will only copy current URL

Categories

(Firefox :: Address Bar, defect, P3)

Firefox 100
x86_64
All
defect

Tracking

()

People

(Reporter: ilovemc888, Unassigned)

References

Details

Attachments

(1 file)

Using:
Ubuntu 22.04
KDE (Wayland) 5.24
Firefox (Flatpak) 100 [with MOZ_ENABLE_WAYLAND=1]
How to repro:

  1. Paste something into Address Bar, overwriting the current URL
  2. Ctrl-A
  3. Ctrl-C
  4. Paste anywhere else
    What actually happens:
    It pastes the URL of the current page, instead of what should've been copied.
    What should've happened:
    It should've copied what was pasted inside the address bar. I use this to sanitize input before pasting into things like Terminal.
    This works as expected on Firefox on Windows 11, as well as Chrome on Windows/Linux.

I've tried reproducing the issue using Wayland on Ubuntu 20.04 and Ubuntu 22.04, 'regular' builds as well as flatpak builds, but without any success. Pasting a link/text correctly overwrites the current string and doing CTRL+A -> CTRL+C copies the current string correctly in all the cases.

Do you by any chance have any addons installed that might interfere with copy/pasting operations?

Flags: needinfo?(ilovemc888)

(In reply to Cristian Baica [:cbaica], Release Desktop QA from comment #1)

I've tried reproducing the issue using Wayland on Ubuntu 20.04 and Ubuntu 22.04, 'regular' builds as well as flatpak builds, but without any success. Pasting a link/text correctly overwrites the current string and doing CTRL+A -> CTRL+C copies the current string correctly in all the cases.

Do you by any chance have any addons installed that might interfere with copy/pasting operations?

Not to my knowledge, I'm using KDE and Klipper is disabled. CTRL+A -> CTRL+C copies the current string correctly if the string was manually typed, not pasted. I have only Ublock and h.264ify installed. Enabling Klipper has no effect, in the history it shows what was originally copied and then the URL that was copied instead of the current string. I've never tested firefox through apt because I don't want snaps on my system (firefox is transitional package in 22.04), so I'm only using the flatpak builds.

OS: Linux → All

Correcting my mistsake here. I've managed to reproduce this in the latest nightly Fx103.0a1 build. I've made a recording of the issue as well.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(ilovemc888)

Reproduced as well on latest Nightly 103.0a1under Win 10, 64-bit:

  1. Open https://www.mozilla.org/
  2. Select Building a better internet and Ctrl+C
  3. Go to urlbar and paste it (Ctrl+V)
  4. Without closing the address bar dropdown, perform Ctrl+A and paste somewhere else. - https://www.mozilla.org/ is pasted

Here is the browser console log asked in bug https://bugzilla.mozilla.org/show_bug.cgi?id=1747368#c1

_getSelectedValueForClipboard: <empty string> debugger eval code:2:9
selectionStart: 30 debugger eval code:3:9
valueIsTyped: true debugger eval code:4:9
value: https://www.mozilla.org/en-US/ debugger eval code:5:9
_untrimmedValue: https://www.mozilla.org/en-US/ debugger eval code:6:9
pageproxystate: invalid

The severity field is not set for this bug.
:adw, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(adw)

This may be a duplicate of bug 1717305, but the STR are a little different.

Severity: -- → S3
Flags: needinfo?(adw)
Priority: -- → P3
See Also: → 1717305

Hi, I'm the reporter of the duplicate https://bugzilla.mozilla.org/show_bug.cgi?id=1772185 and since FF 102 I don't reproduce it anymore.

Maybe that https://nakedsecurity.sophos.com/2022/06/29/firefox-102-fixes-address-bar-spoofing-security-hole/ fixed it?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: