Bug 31955

Summary: postMessage should serialize File objects
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch sam: review+

Description Oliver Hunt 2009-11-28 15:48:41 PST
the internal structured cloning algorithm indicates that we should clone File objects
Comment 1 Oliver Hunt 2009-11-28 17:00:27 PST
Created attachment 43986 [details]
Patch
Comment 2 Sam Weinig 2009-11-28 19:03:25 PST
Comment on attachment 43986 [details]
Patch

>          SerializedType type() const { return m_type; }
> @@ -77,6 +79,8 @@ namespace WebCore {
>              , m_string(string.crossThreadString()) // FIXME: Should be able to just share the Rep
>          {
>          }
> +        
> +        explicit SerializedScriptValueData(const File* file);

The parameter name is not necessary here.

r=me
Comment 3 Oliver Hunt 2009-11-29 20:23:25 PST
Committed r51480