Changeset 117160 in webkit
- Timestamp:
- May 15, 2012 2:27:39 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117128 r117160 1 2012-05-15 Lauro Neto <lauro.neto@openbossa.org> 2 3 [File API] URL methods handling null arguments 4 https://bugs.webkit.org/show_bug.cgi?id=69693 5 6 Reviewed by Adam Barth. 7 8 URL.createObjectURL must return null instead of undefined 9 when a null blob is given as argument. Updated old test that 10 used undefined explicitly. New test by Mark Pilgrim (rebaselined 11 after fix). 12 13 * fast/files/url-null-expected.txt: Added. 14 * fast/files/url-null.html: Added. 15 * http/tests/fileapi/create-blob-url-from-data-url.html: 16 1 17 2012-05-15 Terry Anderson <tdanderson@chromium.org> 2 18 -
trunk/LayoutTests/http/tests/fileapi/create-blob-url-from-data-url.html
r115582 r117160 16 16 return; 17 17 var blobURL = location.hash.substr(1); 18 if (blobURL == " undefined")18 if (blobURL == "null") 19 19 log("PASS: no blob URL is created"); 20 20 else -
trunk/Source/WebCore/ChangeLog
r117158 r117160 1 2012-05-15 Lauro Neto <lauro.neto@openbossa.org> 2 3 [File API] URL methods handling null arguments 4 https://bugs.webkit.org/show_bug.cgi?id=69693 5 6 Reviewed by Adam Barth. 7 8 Per the latest editor's draft of the File API: 9 http://dev.w3.org/2006/webapi/FileAPI/#dfn-createObjectURL 10 11 Use null instead of undefined as return value when a 12 null blob is given to URL.createObjectURL. 13 14 Test: fast/files/url-null.html 15 16 * html/DOMURL.idl: 17 1 18 2012-05-15 Jer Noble <jer.noble@apple.com> 2 19 -
trunk/Source/WebCore/html/DOMURL.idl
r109574 r117160 35 35 ] DOMURL { 36 36 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM 37 [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs= Undefined] static DOMString createObjectURL(in MediaStream stream);37 [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs=Null] static DOMString createObjectURL(in MediaStream stream); 38 38 #endif 39 [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs= Undefined] static DOMString createObjectURL(in Blob blob);39 [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs=Null] static DOMString createObjectURL(in Blob blob); 40 40 [CallWith=ScriptExecutionContext] static void revokeObjectURL(in DOMString url); 41 41 };
Note: See TracChangeset
for help on using the changeset viewer.