Can't copy page title & link in "Google's R Style Guide"
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.
Hi @evilnickname, Thanks for your effort, so it seems like the limitation of Firefox? Maybe we can open an issue to Firefox.....😋
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
In Firefox 63 you can use:
navigator.clipboard.writeText("<empty clipboard>")
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText