Repository navigation
feat: clipboard module aligned with the W3C Clipboard API - #51707
Merged
Merged
Conversation
Member
|
Been seeing a lot of build flakes like this the last couple days, but I'm not sure where they're coming from |
ckerr
reviewed
May 20, 2026
Member
|
@jkleinsc, can you merge |
jkleinsc
force-pushed
the
clipboard-refactor
branch
2 times, most recently
from
May 21, 2026 14:01
80406fb to
a5eeed5
Compare
nmggithub
reviewed
May 21, 2026
ckerr
reviewed
Jun 8, 2026
ckerr
left a comment
Member
There was a problem hiding this comment.
Review pt 1. C++ review is next
ckerr
reviewed
Jun 8, 2026
ckerr
reviewed
Jun 10, 2026
jkleinsc
force-pushed
the
clipboard-refactor
branch
from
June 11, 2026 15:15
5cf44ce to
fd7b0a7
Compare
3 tasks done
jkleinsc
force-pushed
the
clipboard-refactor
branch
from
June 29, 2026 21:43
fd7b0a7 to
2c8f867
Compare
ckerr
reviewed
Jun 29, 2026
dsanders11
requested changes
Jun 30, 2026
dsanders11
left a comment
Member
There was a problem hiding this comment.
Left a handful of comments, the main blocker being shell/common/api -> shell/browser/api rename.
dsanders11
reviewed
Jun 30, 2026
Allows Returns `Promise<Blob>` in our docs instead of the workaround of Returns `Promise<import('buffer').Blob>`
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
deepak1556
reviewed
Jul 28, 2026
Co-authored-by: Robo <[email protected]>
deepak1556
approved these changes
Jul 28, 2026
ckerr
approved these changes
Jul 28, 2026
|
Release Notes Persisted
|
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #52508 |
jkleinsc
added a commit
that referenced
this pull request
Jul 30, 2026
feat: clipboard module aligned with the W3C Clipboard API (#51707) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <[email protected]>
This was referenced Aug 11, 2026
This was referenced Aug 18, 2026
samhh
added a commit
to gitbutlerapp/gitbutler
that referenced
this pull request
Aug 27, 2026
Includes the Window State API!: electron/electron#52270 Regarding the clipboard change see: electron/electron#51707
samhh
added a commit
to gitbutlerapp/gitbutler
that referenced
this pull request
Aug 27, 2026
Includes the Window State API!: electron/electron#52270 Regarding the clipboard change see: electron/electron#51707
8 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
This PR implements https://github.com/electron/rfcs/blob/main/text/0019-clipboard-rearchitecture.md
The
clipboardmodule has been rearchitected to align with the W3C Clipboard API.The four read/write methods now all return Promises, matching
navigator.clipboard:clipboard.read()returnsPromise<ClipboardItem[]>matching the W3CClipboardIteminstance shape.clipboard.write(items)returnsPromise<void>and accepts an array ofClipboardIteminstances constructed vianew ClipboardItem({ [mime]: payload })— modeled after the W3CClipboardItem(items)constructor. Each payload value isBuffer | string | Object.clipboard.readText()returnsPromise<string>.clipboard.writeText(text)returnsPromise<void>.Additionally, the
clipboardmodule is no longer available in the renderer process.For review purposes, I've broken up the PR into two changes:
This PR does not include adding the
clipboardchangeevent or theprivacyTypeoption as those changes will be handled in separate PRs.Assisted-By: Claude Opus 4.7
Checklist
npm testpassesRelease Notes
Notes: clipboard module is now aligned with the W3C Clipboard API