Bug 62661 - Implementation of webkitSlice does not match Blob slice api
Summary: Implementation of webkitSlice does not match Blob slice api
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 13:15 PDT by Philip Rogers
Modified: 2011-07-11 13:01 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Rogers 2011-06-14 13:15:55 PDT
Chrome Version: 13.0.782.20
OS Version: OS X 10.6.7

The FileApi specifies that Blob should have a method splice that takes a start and a length parameter. webkitSplice implements this as a start and an end parameter.

The Blob API spec requires:
Blob slice(in unsigned long long start, in unsigned long long length, optional DOMString contentType);
http://www.w3.org/TR/FileAPI/#dfn-Blob

The problematic function is in Blob.cpp:
PassRefPtr<Blob> Blob::webkitSlice(long long start, long long end, const String& contentType) const
Comment 1 Philip Rogers 2011-07-11 13:01:28 PDT
It looks like the WebKit is matching the working draft of the spec: http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob

I think that's appropriate, so I'm closing this bug.