RESOLVED FIXED 78111
Add unprefixed Blob.webkitSlice (slice)
https://bugs.webkit.org/show_bug.cgi?id=78111
Summary Add unprefixed Blob.webkitSlice (slice)
Simon Pieters (:zcorpan)
Reported 2012-02-08 06:08:07 PST
Please rename Blob.webkitSlice to Blob.slice. Opera is working on changing the semantics of Blob.slice, but we don't want to prefix it. Since Gecko and WebKit have been shipping without Blob.slice support for several months, the existing content, if any, that relied on the old semantics of Blob.slice have had the chance to break and get updated. With Opera soon shipping Blob.slice with the new semantics, it's time to drop the prefix.
Attachments
Patch (16.99 KB, patch)
2012-06-11 04:09 PDT, Kinuko Yasuda
no flags
Patch (18.85 KB, patch)
2012-06-11 04:45 PDT, Kinuko Yasuda
no flags
Patch (20.00 KB, patch)
2012-06-11 05:51 PDT, Kinuko Yasuda
no flags
Patch (20.00 KB, patch)
2012-06-11 06:14 PDT, Kinuko Yasuda
no flags
Patch (20.01 KB, patch)
2012-06-11 06:50 PDT, Kinuko Yasuda
no flags
Archive of layout-test-results from ec2-cr-linux-04 (1.22 MB, application/zip)
2012-06-11 09:38 PDT, WebKit Review Bot
no flags
Patch (20.45 KB, patch)
2012-06-11 23:51 PDT, Kinuko Yasuda
abarth: review+
Kinuko Yasuda
Comment 1 2012-06-11 04:09:53 PDT
Gustavo Noronha (kov)
Comment 2 2012-06-11 04:23:32 PDT
Kinuko Yasuda
Comment 3 2012-06-11 04:45:05 PDT
Kinuko Yasuda
Comment 4 2012-06-11 05:51:07 PDT
Kinuko Yasuda
Comment 5 2012-06-11 06:14:56 PDT
Gustavo Noronha (kov)
Comment 6 2012-06-11 06:29:21 PDT
Kinuko Yasuda
Comment 7 2012-06-11 06:50:59 PDT
WebKit Review Bot
Comment 8 2012-06-11 09:38:39 PDT
Comment on attachment 146848 [details] Patch Attachment 146848 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/12941361 New failing tests: fast/filesystem/workers/file-writer-truncate-extend.html fast/filesystem/workers/file-writer-write-overlapped.html fast/filesystem/file-writer-truncate-extend.html inspector/profiler/heap-snapshot-loader.html
WebKit Review Bot
Comment 9 2012-06-11 09:38:44 PDT
Created attachment 146867 [details] Archive of layout-test-results from ec2-cr-linux-04 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-04 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Kinuko Yasuda
Comment 10 2012-06-11 23:51:30 PDT
Kinuko Yasuda
Comment 11 2012-06-12 21:05:01 PDT
Could someone review this?
Adam Barth
Comment 12 2012-06-12 21:08:51 PDT
Comment on attachment 147024 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147024&action=review > Source/WebCore/bindings/gobject/WebKitDOMCustom.h:32 > -WEBKIT_API WebKitDOMBlob* webkit_dom_blob_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type); > +WEBKIT_API WebKitDOMBlob* webkit_dom_blob_webkit_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type); Why the addition of "webkit" here? I would have thought we'd be happy with fewer webkits, not more. > Source/WebCore/fileapi/Blob.cpp:97 > + String message("Blob.webkitSlice() is deprecated. Use Blob.slice() instead ."); Looks like you've got an extra space before the . > Source/WebCore/fileapi/Blob.h:75 > + // Prefixed version is going to be deprecated. This internally calls sliceInternal() (as slice() does) after showing a deprecation message. "is going to be deprecated" => "is deprecated" :)
Kinuko Yasuda
Comment 13 2012-06-12 21:14:48 PDT
(In reply to comment #12) > (From update of attachment 147024 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=147024&action=review > > > Source/WebCore/bindings/gobject/WebKitDOMCustom.h:32 > > -WEBKIT_API WebKitDOMBlob* webkit_dom_blob_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type); > > +WEBKIT_API WebKitDOMBlob* webkit_dom_blob_webkit_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type); > > Why the addition of "webkit" here? I would have thought we'd be happy with fewer webkits, not more. It's for keeping backward compatibility, because I added !LANGUAGE_GOBJECT not to generate webkitSlice binding for gobject as its binding doesn't support CallWith=ScriptExecutionContext. (Hope this works for gtk) > > Source/WebCore/fileapi/Blob.cpp:97 > > + String message("Blob.webkitSlice() is deprecated. Use Blob.slice() instead ."); > > Looks like you've got an extra space before the . > > > Source/WebCore/fileapi/Blob.h:75 > > + // Prefixed version is going to be deprecated. This internally calls sliceInternal() (as slice() does) after showing a deprecation message. > > "is going to be deprecated" => "is deprecated" :) Will fix these nits. Thanks for your review!
Adam Barth
Comment 14 2012-06-12 21:22:09 PDT
Ah! I understand. Thanks. :)
Kinuko Yasuda
Comment 15 2012-06-12 23:51:04 PDT
Note You need to log in before you can comment on or make changes to this bug.