| Summary: | Implement unprivileged execCommand("copy") and execCommand("cut") | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alan Tam <Tam> | ||||||
| Component: | WebCore JavaScript | Assignee: | Sam Weinig <sam> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ap, aroben, commit-queue, ddkilzer, enrica, graouts, kwangyul.seo, mike, rniwa, sam, vincent, webkit-bug-importer, webkit | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 155548 | ||||||||
| Attachments: |
|
||||||||
|
Description
Alan Tam
2015-06-25 18:41:37 PDT
Letting webpages _write_ into the clibpard while the user is interactiving with the page seems okay. Yes, writing only. Looks like this will be implemented in Firefox 41 too. https://bugzilla.mozilla.org/show_bug.cgi?id=1012662 FWIW, the Chrome issue is here: https://code.google.com/p/chromium/issues/detail?id=424968 This would allow Github.com to stop using Flash on WebKit: <https://twitter.com/davidgraham/status/692075210435010561> There is certainly no shortage of websites that are using Flash for this purpose, github possibly not even being the most prominent. Personally, I'm not looking forward to a world in which advertisers put their content on my pasteboard each time a click a webpage. Created attachment 273921 [details]
Patch
Attachment 273921 [details] did not pass style-queue:
ERROR: Source/WebCore/editing/EditorCommand.cpp:1177: More than one command on the same line [whitespace/newline] [4]
Total errors found: 1 in 9 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Committed r198092: <http://trac.webkit.org/changeset/198092> Yay! Thanks Sam! (In reply to comment #10) > Yay! Thanks Sam! My pleasure! Any chance we can get Github updated to check document.queryCommandSupported("copy") to add the copy button :). |