Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click on the "id" button from "show_ids" does nothing in Firefox 57 #150

Closed
aik opened this issue Jan 9, 2018 · 20 comments
Closed

Click on the "id" button from "show_ids" does nothing in Firefox 57 #150

aik opened this issue Jan 9, 2018 · 20 comments
Labels

Comments

@aik
Copy link

aik commented Jan 9, 2018

$(subj). It is supposed to copy to clipboard or something. Cannot it be just text so doubleclick on it could copy it to the clipboard?

@ajdlinux
Copy link
Collaborator

ajdlinux commented Jan 9, 2018

Works fine for me on Firefox 57.

@ajdlinux
Copy link
Collaborator

ajdlinux commented Jan 9, 2018

Are there any errors appearing in the browser JavaScript console?

@aik
Copy link
Author

aik commented Jan 9, 2018

none, none of id buttons produces anything in "browser console" or any other console. where should I look at?

@ajdlinux
Copy link
Collaborator

ajdlinux commented Jan 9, 2018

No idea. It works fine here on Firefox 57.0.4, so I know it's not completely broken in Firefox...

@stephenfin
Copy link
Member

@aik Any chance of getting a screencast so we can see what you're trying to do. Also working here with both Firefox and Chromium. I assume you don't have JavaScript disabled?

@aik
Copy link
Author

aik commented Jan 10, 2018

no cast, sorry. and I simply click on the id button. I used a default FF profile with no addons or other adjustments so JS should just work. Same happens on @mpe 's FF so it is probably not "mate" desktop fault.
Anyway, why not just show text id so double click could copy it to the clipboard?

@daxtens daxtens added the bug label Jan 18, 2018
@daxtens
Copy link
Collaborator

daxtens commented Jan 25, 2018

So I have a theory about what might be the issue here.

@aik and @mpe, are you talking about the ^C/^V clipboard, or the selection/middle-mouse/shift-insert clipboard?

The javascript will put the ID in the ^C/^V clipboard, not the old-school shift-insert clipboard. If you're wanting it to put it in the shift-insert clipboard, that would be pretty easy for us to do.

Regards,
Daniel

@aik
Copy link
Author

aik commented Jan 25, 2018

left click on the id button and then middle click in the mate-terminal - which clipboard is it?

@daxtens
Copy link
Collaborator

daxtens commented Jan 25, 2018 via email

@stephenfin
Copy link
Member

I'd no idea that was even a thing 😮 Interesting...

@mpe
Copy link
Contributor

mpe commented Feb 7, 2018

Yes you're right. To be pedantic that's the "CLIPBOARD" (Ctrl-v) vs the "PRIMARY SELECTION" (shift insert).

I guess Chromium copies to both by default. Up to you whether you think it's patchwork's job to care about that level of detail. But I guess if it's easy to copy to both then that would be preferable.

@stephenfin
Copy link
Member

stephenfin commented Feb 7, 2018

codemirror/codemirror5#931 looks related. Per that, this may be an issue with Firefox

@ajdlinux
Copy link
Collaborator

@daxtens I take it you didn't get anywhere with this?

Having done a bit of Googling about the subject - I'm going to close this as it looks to be a Firefox limitation, not explicitly documented anywhere.

@aik
Copy link
Author

aik commented Nov 28, 2019

Firefox 71b06, the issue persist. Please make it text. Thanks.

@mpe
Copy link
Contributor

mpe commented Nov 28, 2019

NAK 🔨

@ajdlinux
Copy link
Collaborator

Yeah mpe mode is going to stay I think, if anything this should be reported as a bug in Firefox

@aik
Copy link
Author

aik commented Nov 28, 2019

and what is the bug to report exactly? I complained about the design when text is not text == not selectable. My proposal replaces a single click with a double click (which is what the rest of linux UI does), yours is what, switch to chromium? ah, never mind, there are weirded things with pw anyway.

@ajdlinux
Copy link
Collaborator

Firefox's behaviour when using Document.execCommand() to copy text to the clipboard on Linux is to copy into CLIPBOARD but not PRIMARY, while Chrome does both. That is certainly unexpected to me and would be worthy of a bug report to Mozilla.

The single-click to copy behaviour is there due to specific user request. Having single-click copy buttons is fairly standard in web-based developer tools these days - though admittedly ours is not quite as discoverable as I'd like it to be.

@aik
Copy link
Author

aik commented Nov 28, 2019

It is not "fairly standard" and where it exists - it is a text box with a "copy" button next to it.

@aik
Copy link
Author

aik commented Sep 30, 2021

Still find it very annoying that the id is not a selectable text anywhere on a page or url but just a button. I constantly paste entire patches to the console and ruin the shell history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants