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

[WebAPI] ClipboardItem #2514

Closed
chrisdavidmills opened this issue Feb 19, 2021 · 5 comments
Closed

[WebAPI] ClipboardItem #2514

chrisdavidmills opened this issue Feb 19, 2021 · 5 comments
Assignees
Labels
Content:WebAPI Web API docs fx release archive A closed issue relating to firefox release notes for developers.

Comments

@chrisdavidmills
Copy link
Contributor

chrisdavidmills commented Feb 19, 2021

Acceptance criteria

    • The listed features are documented sufficiently on MDN
    • BCD is updated
    • Interactive example and data repos are updated if appropriate
    • The content has been reviewed as needed

Features to document

  1. ClipboardItem

Related Gecko bugs

This is already documented for the most part, but the docs are not quite finished. The whole lot could do with checking. Also the BCD needs updating.

For folks helping with Firefox-related documentation features — make sure above AC have been done, but also:

  • Set bugs to dev-doc-complete
  • Add entry to Firefox release notes if feature is enabled in release
  • Add entry to Firefox experimental features page if feature is not yet enabled in release
@Rumyra
Copy link
Collaborator

Rumyra commented Feb 23, 2021

OK so... 😅 ClipboardItem...

The spec has changed since I last published the initial docs in June-ish time. There are a few extra properties and methods. These are:

  • ClipboardItem.createDelayed()
  • item.presentationStyle
  • item.lastModified
  • item.delayed
  • Review what's there

EDIT: Due to BCD feedback I'm going to remove members which are not implemented by any browser at this time - rather than the placeholders... I can add them back in pretty easily later 👍

See: #2829

However these are not implemented in either FF or Chrome, apart from item.presentationStyle in FF. Now I'm happy to whip up a page for this, however none of the above have any explainer within the spec https://www.w3.org/TR/clipboard-apis/#clipboard-interface

Presentation style seems to represent whether an item is to be pasted as an attachment or inline. This is quite difficult to explain without an example, which is also quite difficult to create as there is no other functionality around pasting something as an attachment.

However BCD looks up to date so there is that :) I spoke too soon - There's a few inconsistencies in implementations which should go in, so I need to spend a bit of time on this

@jpmedley
Copy link
Collaborator

jpmedley commented Mar 3, 2021

I can't even find that any work is being done on these in Chrome. By the way, presence of an item in draft spec is no guarantee that it will survive in that form (or at all) into a production version of any browser. In fact the last proposed enhancement to this API made it (if I remember correctly) nearly to an origin trial before being killed on security grounds. This is why I never document anything until we're very close to having product in the can.

In spite of that, I went ahead and reviewed the draft. (Not really thinking things through today, but oh well.) In the review I poked one of the spec authors on a few items. This should start a dialog that will get us some clarity on where this is heading. (See if these features don't also get tied up in security issues.)

@Rumyra
Copy link
Collaborator

Rumyra commented Mar 8, 2021

Last thing:

Removing members that haven't been implemented as they are not added to BCD. It's easy enough to add them back in when they are 👍 #2934

@jpmedley
Copy link
Collaborator

jpmedley commented Mar 8, 2021

👍

@chrisdavidmills
Copy link
Contributor Author

OK, this is all looking good, so I think we're done here!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
@bsmth bsmth added fx release archive A closed issue relating to firefox release notes for developers. and removed Firefox 87 labels Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:WebAPI Web API docs fx release archive A closed issue relating to firefox release notes for developers.
Projects
None yet
Development

No branches or pull requests

4 participants