Bug 94845 - canvas fallback content is stripped out on copy and paste
Summary: canvas fallback content is stripped out on copy and paste
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2012-08-23 14:01 PDT by Ryosuke Niwa
Modified: 2022-06-02 09:33 PDT (History)
9 users (show)

See Also:


Attachments
Safari 15.5 matches other browsers (344.39 KB, image/png)
2022-06-02 05:41 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2012-08-23 14:01:37 PDT
http://code.google.com/p/chromium/issues/detail?id=125912

Reproduction steps:
1. AA<canvas>BB</canvas>CC
2. select the text covering canvas tag
3. ctrl+c copy to clipboard.

Expected result:
the system clipboard should include the fallback content inside canvas tag. ==> "AABBCC"

Actual result:
the fallback content is stripped.  ==> "AACC"
Comment 1 Ahmad Saleem 2022-06-02 05:41:09 PDT
Created attachment 459957 [details]
Safari 15.5 matches other browsers

I created a following JSFiddle from given test case in Comment 01 - https://jsfiddle.net/m4dz1nkj/show

I am not able to reproduce the actual or expected result, it is altogether different results but it is consistent and same across all browser as shown in the attached picture.

Should this be marked as "RESOLVED INVALID"? Thanks!
Comment 2 Alexey Proskuryakov 2022-06-02 09:03:15 PDT
This issue still partly reproduces:

- HTML-like flavors contain an empty canvas element without fallback content.
- RTF and UTF-16 flavors contain the fallback "BB".
- UTF-8 and NSString PboardType do not contain the fallback.
Comment 3 Radar WebKit Bug Importer 2022-06-02 09:03:24 PDT
<rdar://problem/94288746>
Comment 4 Ryosuke Niwa 2022-06-02 09:33:16 PDT
(In reply to Alexey Proskuryakov from comment #2)
> This issue still partly reproduces:
> 
> - HTML-like flavors contain an empty canvas element without fallback content.
> - RTF and UTF-16 flavors contain the fallback "BB".
> - UTF-8 and NSString PboardType do not contain the fallback.

Huh, that's some odd inconsistencies. I guess we fixed this partially.