Update execCommand use in context-menu-copy-link-with-types #543
Labels
effort: medium
This task is a medium effort.
enhancement
Improves an existing repo feature.
idle
Issues and pull requests with no activity for three months.
on hold
Waiting on something else before this can be moved forward.
p2
We want to address this but may have other higher priority items.
context-menu-copy-link-with-types uses a content script because when the example was written execCommand didn't work in background pages; now they do so the example should be updated to call execCommand from the background page instead of using a content script.
Note, before updating check whether Clipboard.write() is available in Firefox, as this would be the preferred method given that execCommand is deprecated.
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write
MDN URL: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons
The text was updated successfully, but these errors were encountered: