link-text-location-copier icon indicating copy to clipboard operation
link-text-location-copier copied to clipboard

Can't copy page title & link in "Google's R Style Guide"

Open allenyllee opened this issue 8 years ago • 4 comments

I can't use any function in this page... Google's R Style Guide

allenyllee avatar Feb 02 '18 16:02 allenyllee

Hi @allenyllee,

Google’s R Style Guide is an XML document, which does not support document.execCommand(copy). I’m sorry, but beyond adding it to the list of known issues, I don’t think there’s much I can do about it.

evilnickname avatar Feb 04 '18 16:02 evilnickname

Hi @evilnickname, Thanks for your effort, so it seems like the limitation of Firefox? Maybe we can open an issue to Firefox.....😋

allenyllee avatar Feb 05 '18 12:02 allenyllee

In the future, it will work in a background script anyway (no need for a content script anymore).

These bugs needs to be fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1357487 https://bugzilla.mozilla.org/show_bug.cgi?id=1385403

def00111 avatar Feb 05 '18 16:02 def00111

In Firefox 63 you can use: navigator.clipboard.writeText("<empty clipboard>")

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText

def00111 avatar Sep 15 '18 15:09 def00111