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

Switch to modern Clipboard API #649

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Switch to modern Clipboard API #649

merged 2 commits into from
Jan 7, 2019

Conversation

lidel
Copy link
Member

@lidel lidel commented Jan 2, 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.

Test URL: http://127.0.0.1:8080/ipfs/QmQyunNqiWpmgHVnTPzUy6unEwPmr6c72J1PamFpfynwmf/icons/stroke_centralization.svg (try copying its Public Gateway URL via browser action menu)

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.

Closes #440
@ghost ghost assigned lidel Jan 2, 2019
@ghost ghost added the status/in-progress In progress label Jan 2, 2019
@lidel lidel merged commit 4446839 into master Jan 7, 2019
@ghost ghost removed the status/in-progress In progress label Jan 7, 2019
@lidel lidel deleted the fix/new-clipboard-api branch January 7, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant