-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
feat: route deprecated sync clipboard read through permission checks #45377
feat: route deprecated sync clipboard read through permission checks #45377
Conversation
0549301
to
007ca8d
Compare
007ca8d
to
6b2459a
Compare
patches/chromium/feat_separate_content_settings_callback_for_sync_and_async_clipboard.patch
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put an explicit version timeline for deprecation before landing this?
Yes that is something I would like to discuss in this PR. Do we match Chrome and keep the API supported till it gets removed from upstream ? Or is there are Electron specific timeline we want to pursue ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Consider this approved from my API / security perspective, I'll leave in depth code review to other folks.
RE removal timeline, I'd like to get rid of this before Chrome does but I'm open to that timeline being dictated by your migration timeline @deepak1556
Would you consider a similar opt out for |
@pushkin- can you share example of what is broken with copy ? Unlike the paste command which was disabled completely the copy/cut commands rely on the transient activation state similar to browsers as long as a command is executed with the expected time span of user activation which is set to 5 seconds they should work. |
@deepak1556 I believe that Ultimately, it's an issue with our code, but it's something that used to work, and now broke with the 33.3.2 patch. See discussion here #45144 |
c6a1c97
to
68ac3e7
Compare
That is correct, however the change from 7ecb8ad does not completely block the cut/copy feature as long as you are focused on the window that needs to execute the action which shouldn't be a breaking change for most apps out there. I will keep this PR focused on the paste command that actually needs an opt-in to allows apps have a reasonable timeline to migrate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Release Notes Persisted
|
I was unable to backport this PR to "34-x-y" cleanly; |
I was unable to backport this PR to "33-x-y" cleanly; |
I have automatically backported this PR to "35-x-y", please check out #45471 |
@deepak1556 has manually backported this PR to "34-x-y", please check out #45472 |
@deepak1556 has manually backported this PR to "33-x-y", please check out #45473 |
Description of Change
Follow-up to #45277 that makes the feature opt-in behind permission checks to provide a transition period for users.
All the feature related properties and methods are marked deprecated on purpose to hint that this is will removed at some point.
enableDeprecatedPaste
webpreference will enable support for the permission checks ofdocument.executeCommand("paste")
deprecated-sync-clipboard-read
Release Notes
Notes: Add permission support for
document.executeCommand("paste")