Open Bug 1810276 Opened 2 years ago Updated 2 years ago

Selection in CodeMirror isn't put into primary selection

Categories

(DevTools :: Source Editor, defect, P3)

Firefox 110
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: lilydjwg, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0

Steps to reproduce:

  • F12
  • make some requests
  • select one interesting request from the "Network" panel, and choose to the "Response"
  • select some interesting string
  • try to get the primary selection outside Firefox

Actual results:

The primary selection isn't updated and my selected string isn't there.

Expected results:

User-selected string should be put into primary selection per convention for the user's convenience.

I'm running Arch Linux on Wayland, but usual selections (web text, textareas, string in the urlbar, etc) work as expected.

FYI I have a lot of history commands and/or Python functions that process the primary selection for me.

The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → DevTools
Severity: -- → S3
Flags: needinfo?(nchevobbe)
Priority: -- → P3
Component: General → Netmonitor

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --

lilydjwg when you select the text, is it the HTML preview or the "Raw" view

Flags: needinfo?(nchevobbe) → needinfo?(lilydjwg)
Priority: -- → P3

The colored raw view of HTML source, and the colored JS & CSS sources. (The HTML preview doesn't even support selecting, but I haven't needed it.)

Flags: needinfo?(lilydjwg)

thanks for the answer.
So it looks like an issue with CodeMirror, as I reproduce on https://codemirror.net/5/

Component: Netmonitor → Source Editor
Summary: [devtools] selection from response payload isn't put into primary selection → Selection in CodeMirror isn't put into primary selection
You need to log in before you can comment on or make changes to this bug.