Skip to content

Update execCommand use in context-menu-copy-link-with-types #543

@rebloor

Description

@rebloor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumThis task is a medium effort.enhancementImproves an existing repo feature.idleIssues and pull requests with no activity for three months.on holdWaiting on something else before this can be moved forward.p2We want to address this but may have other higher priority items.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions