Bug 213370 - Failure the case of "null type Blob slice" in wpt/FileAPI/blob/Blob-slice.html
Summary: Failure the case of "null type Blob slice" in wpt/FileAPI/blob/Blob-slice.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-19 03:28 PDT by Tetsuharu Ohzeki [UTC+9]
Modified: 2020-06-22 09:35 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.32 KB, patch)
2020-06-19 03:31 PDT, Tetsuharu Ohzeki [UTC+9]
no flags Details | Formatted Diff | Diff
Patch (7.48 KB, patch)
2020-06-21 08:11 PDT, Tetsuharu Ohzeki [UTC+9]
no flags Details | Formatted Diff | Diff
Patch (7.45 KB, patch)
2020-06-22 07:44 PDT, Tetsuharu Ohzeki [UTC+9]
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Tetsuharu Ohzeki [UTC+9] 2020-06-19 03:31:04 PDT
Created attachment 402274 [details]
Patch
Comment 2 Sam Weinig 2020-06-20 10:56:23 PDT
Probably just need to update the mac test and results for http/tests/local/fileapi/send-sliced-dragged-file.html by hand.
Comment 3 Tetsuharu Ohzeki [UTC+9] 2020-06-21 08:08:41 PDT
Sam, thank you advice!
Comment 4 Tetsuharu Ohzeki [UTC+9] 2020-06-21 08:11:51 PDT
Created attachment 402426 [details]
Patch

I addressed failures on mac-wk1
Comment 5 Darin Adler 2020-06-21 13:27:11 PDT
Comment on attachment 402426 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402426&action=review

> Source/WebCore/fileapi/Blob.idl:45
> +    Blob slice(optional long long start = 0,
> +               optional long long end = 0x7FFFFFFFFFFFFFFF,
> +               optional DOMString contentType = "");

My preferences would be to not format like this -- in WebKit we normally don’t intent to line up with open parenthesis and it seems we could leave this as a long line. That would have the advantage of having an easy to read diff. But maybe this is just pasted from the specification text?
Comment 6 Tetsuharu Ohzeki [UTC+9] 2020-06-21 16:51:50 PDT
(In reply to Darin Adler from comment #5)
> Comment on attachment 402426 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=402426&action=review
> 
> > Source/WebCore/fileapi/Blob.idl:45
> > +    Blob slice(optional long long start = 0,
> > +               optional long long end = 0x7FFFFFFFFFFFFFFF,
> > +               optional DOMString contentType = "");
> 
> My preferences would be to not format like this -- in WebKit we normally
> don’t intent to line up with open parenthesis and it seems we could leave
> this as a long line. That would have the advantage of having an easy to read
> diff. But maybe this is just pasted from the specification text?


Yes. Certainly, I tweaked a indent a bit but I copied from the spec basically.
https://w3c.github.io/FileAPI/#blob-section
Comment 7 Tetsuharu Ohzeki [UTC+9] 2020-06-22 07:44:58 PDT
Created attachment 402471 [details]
Patch

I addressed the review point about an indent in idl file
Comment 8 Tetsuharu Ohzeki [UTC+9] 2020-06-22 07:48:04 PDT
Thank you, Darin!
Comment 9 EWS 2020-06-22 09:34:19 PDT
Committed r263353: <https://trac.webkit.org/changeset/263353>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 402471 [details].
Comment 10 Radar WebKit Bug Importer 2020-06-22 09:35:23 PDT
<rdar://problem/64598895>