Closed Bug 1699839 Opened 4 years ago Closed 4 years ago

Linux Debugger Window: Mouse selection doesn't appear in X11 primary buffer

Categories

(Core :: DOM: Events, defect)

Firefox 84
defect

Tracking

()

RESOLVED DUPLICATE of bug 1593761

People

(Reporter: johannes.thraen, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.9.5 Chrome/56.0.2924.122 Safari/537.36

Steps to reproduce:

Click Menu-> Web Developer -> Debugger -> Select text in debugger window on linux

Actual results:

Selected text did not end up in primary selection buffer. It could not be pasted into antother text field with middle mouse click.

Expected results:

Selected text should have ended up in primary selection buffer. It should have been pastable into antother text field with middle mouse click.

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

Component: Untriaged → Debugger
Product: Firefox → DevTools

Hello, thanks for the report!

I am not sure what you mean by: "Click Menu-> Web Developer -> Debugger -> Select text in debugger window on linux"?
Are you simply talking about open the Debugger panel and select a source code in it?

Also it isn't clear to me that you mean by "Selected text did not end up in primary selection buffer.'

Here is what I've tried:

  1. Open Developer Tools (e.g. F12 on Win, or Menu-> Web Developer -> Debugger)
  2. Select the Debugger panel (if not selected by default)
  3. Select any source code in the panel
  4. Press Ctrl+C to copy the selection to the Clipboard (or use context menu "copy to clipboard")
  5. The text should be in the clipboard => Works for me

Could you please provide similar (detailed) instructions for your case?

Thank you!
Honza

Flags: needinfo?(johannes.thraen)

Hi,

Are you simply talking about open the Debugger panel and select a source code
yes

This is about the Linux X PRIMARY selection buffer, you tried the CLIPBOARD buffer.

Selecting the text (without pressing ctrl-c) should make the text available for pasting with middle click.

Thanks for looking into it :)

Flags: needinfo?(johannes.thraen)

Thanks for the update.

We are using CodeMirror (https://github.com/codemirror/CodeMirror) to show JS sources in the Debugger panel and this component is apparently not supporting primary selection buffer in Firefox (due to missing platform support)

See also: https://discuss.codemirror.net/t/primary-selection-buffer/765

I think core Firefox platform should be fixed to support the primary selection buffer (at least) on Linux.
I am moving it to Core -> DOM Events since the discussion above says: "Firefox doesn’t provide the events needed to do this, so there it doesn’t work."

Honza

Component: Debugger → DOM: Events
Product: DevTools → Core

Since it's codemirror related, it's a duplicate of Bug https://bugzilla.mozilla.org/show_bug.cgi?id=1593761

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