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

docs: add spec for clipboard rearchitecture #454

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Nov 3, 2021

This document outlines a proposal for the future of the clipboard module provided by Electron.

Over the course of the last few months, Chromium has been making significant changes to their Clipboard API, including the ability to handle Custom Formats. Electron has had to break small aspects of its clipboard API to account for this, and it's unclear what other changes we may be forced to adapt to as they continue this work. Beyond this, users have been asking for an improved Clipboard API as well as surfaced a number of bugs with its current implementation - the most detailed of which is here. Given this, @jkleinsc and i have put together a more streamlined proposal for its future.

@codebytere codebytere requested review from a team as code owners November 3, 2021 07:44
@codebytere codebytere marked this pull request as draft November 3, 2021 07:45
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of moving closer to the W3C spec.

wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
Copy link
Contributor

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec should also document the type (i.e. ClipboardItem) being passed between read and write APIs.

wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
wg-api/spec-documents/clipboard-rearchitecture.md Outdated Show resolved Hide resolved
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.

5 participants