Bug 69693

Summary: [File API] URL methods handling null arguments
Product: WebKit Reporter: Mark Pilgrim (Google) <pilgrim>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ericu, ojan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Updates test and changes the return value from undefined to null according to the latest spec.
none
Updated patch none

Description Mark Pilgrim (Google) 2011-10-07 21:46:44 PDT
According to http://dev.w3.org/2006/webapi/FileAPI/#dfn-createObjectURL , "If this method is called with a Blob argument that is NOT valid, then user agents MUST return null." This test calls createObjectURL with null and logs the results.

Expected behavior: returns null
Actual behavior: returns undefined
Comment 1 Mark Pilgrim (Google) 2011-10-07 21:47:22 PDT
Created attachment 110254 [details]
Patch
Comment 2 Lauro Moura Maranhao Neto 2012-02-14 08:34:15 PST
Created attachment 126983 [details]
Updates test and changes the return value from undefined to null according to the latest spec.
Comment 3 WebKit Review Bot 2012-02-14 08:35:57 PST
Attachment 126983 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9

Updating OpenSource
First, rewinding head to replay your work on top of it...
Applying: [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
Using index info to reconstruct a base tree...
<stdin>:1578: trailing whitespace.
        
<stdin>:1647: trailing whitespace.
    
<stdin>:1657: trailing whitespace.
    
<stdin>:1672: trailing whitespace.
        return 0;        
<stdin>:1674: trailing whitespace.
    
warning: squelched 7 whitespace errors
warning: 12 lines add whitespace errors.
Falling back to patching base and 3-way merge...
warning: too many files (created: 168776 deleted: 3), skipping inexact rename detection
Auto-merging LayoutTests/ChangeLog
Auto-merging Source/WebCore/ChangeLog
CONFLICT (content): Merge conflict in Source/WebCore/ChangeLog
Auto-merging Source/WebKit2/ChangeLog
CONFLICT (content): Merge conflict in Source/WebKit2/ChangeLog
Auto-merging Tools/ChangeLog
CONFLICT (content): Merge conflict in Tools/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Lauro Moura Maranhao Neto 2012-05-15 10:48:44 PDT
Created attachment 142001 [details]
Updated patch
Comment 5 Adam Barth 2012-05-15 11:28:33 PDT
Comment on attachment 142001 [details]
Updated patch

Thanks.
Comment 6 WebKit Review Bot 2012-05-15 14:26:54 PDT
Comment on attachment 142001 [details]
Updated patch

Clearing flags on attachment: 142001

Committed r117160: <http://trac.webkit.org/changeset/117160>
Comment 7 WebKit Review Bot 2012-05-15 14:26:59 PDT
All reviewed patches have been landed.  Closing bug.