-
Notifications
You must be signed in to change notification settings - Fork 325
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
Can't copy link for SVG and PDF #440
Labels
kind/bug
A bug in existing code (including security flaws)
Comments
Thank you for finding this gem! I was able to identify the origin of the bug and it is quite entertaining:
Potential fixes (too late for me, so just doing a brain dump):
|
Unfortunately we still don't have proper API for copying from background page in webextension, it seems:
Same issue with copying happens for PDFs: Update: Firefox 63 shipped with Clipboard API, worth checking if we can switch to that. |
lidel
changed the title
Can't copy Canonical nor Public Gateway Link for specific path
Can't copy link for SVG and PDF
Nov 13, 2018
lidel
added a commit
that referenced
this issue
Jan 7, 2019
> Context: #440 (comment) This commit removes the need for content script in Firefox by switching to modern Clipboard API that landed in Firefox 63. As a result, we were able to switch copying in Chrome back to the background page, which fixed copying URLs for SVG and PDF in both browsers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On:
http://127.0.0.1:8080/ipfs/QmY9pfuxeojUKSKwLxuQimvwBGrNx9Vg8Jhb97kZwn2tXP/icons/glyph_small_cancel.svg
Copying the Canonical or Public Gateway Link doesn't work. It triggers the notification, but the clipboard remains unchanged.
The text was updated successfully, but these errors were encountered: