Changeset 70102 in webkit
- Timestamp:
- Oct 19, 2010 4:02:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70093 r70102 1 2010-10-19 Jian Li <jianli@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Rename createBlobURL to createObjectURL and revokeBlobURL to 6 revokeObjectURL per the latest File API spec. 7 https://bugs.webkit.org/show_bug.cgi?id=47934 8 9 Update all the related test and result files to account for the 10 renaming changes. 11 12 * fast/dom/Window/script-tests/window-property-descriptors.js: 13 * fast/dom/Window/window-properties-expected.txt: 14 * fast/dom/Window/window-properties.html: 15 * fast/dom/script-tests/prototype-inheritance.js: 16 * fast/files/apply-blob-url-to-img.html: 17 * fast/files/apply-blob-url-to-xhr.html: 18 * fast/files/create-blob-url-crash-expected.txt: 19 * fast/files/create-blob-url-crash.html: 20 * fast/files/revoke-blob-url-expected.txt: 21 * fast/files/revoke-blob-url.html: 22 * fast/files/workers/resources/worker-apply-blob-url-to-xhr.js: 23 1 24 2010-10-19 Jeremy Orlow <jorlow@chromium.org> 2 25 -
trunk/LayoutTests/fast/dom/Window/script-tests/window-property-descriptors.js
r69553 r70102 59 59 for (var i = 0; i < protoPropertyNames.length; ++i) { 60 60 // Ignore these properties because they do not exist in all implementations. 61 if (protoPropertyNames[i] == "create BlobURL" || protoPropertyNames[i] == "revokeBlobURL")61 if (protoPropertyNames[i] == "createObjectURL" || protoPropertyNames[i] == "revokeObjectURL") 62 62 continue; 63 63 if (protoPropertyNames[i] == "constructor") -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r69749 r70102 2205 2205 window.constructor.prototype.close [function] 2206 2206 window.constructor.prototype.confirm [function] 2207 window.constructor.prototype.create BlobURL [function]2207 window.constructor.prototype.createObjectURL [function] 2208 2208 window.constructor.prototype.dispatchEvent [function] 2209 2209 window.constructor.prototype.find [function] … … 2223 2223 window.constructor.prototype.resizeBy [function] 2224 2224 window.constructor.prototype.resizeTo [function] 2225 window.constructor.prototype.revoke BlobURL [function]2225 window.constructor.prototype.revokeObjectURL [function] 2226 2226 window.constructor.prototype.scroll [function] 2227 2227 window.constructor.prototype.scrollBy [function] -
trunk/LayoutTests/fast/dom/Window/window-properties.html
r66462 r70102 81 81 "window.ondevicemotion" : 1, 82 82 "window.webkitPerformance" : 1, 83 "window.create BlobURL" : 1,84 "window.revoke BlobURL" : 1,83 "window.createObjectURL" : 1, 84 "window.revokeObjectURL" : 1, 85 85 86 86 // showModalDialog is not implemented on all platforms in DumpRenderTree. -
trunk/LayoutTests/fast/dom/script-tests/prototype-inheritance.js
r68252 r70102 22 22 "indexedDB", "IDBKeyRange", "IDBCursor", "IDBDatabase", "IDBDatabaseError", "IDBDatabaseException", "IDBErrorEvent", "IDBEvent", "IDBFactory", "IDBIndex", "IDBObjectStore", "IDBRequest", "IDBSuccessEvent", "IDBTransaction", 23 23 "showModalDialog", 24 "create BlobURL", "revokeBlobURL",24 "createObjectURL", "revokeObjectURL", 25 25 "DeviceOrientationEvent", 26 26 "DeviceMotionEvent", -
trunk/LayoutTests/fast/files/apply-blob-url-to-img.html
r67646 r70102 18 18 log("Old image: " + img.width + " x " + img.height); 19 19 img.onload = onImgLoad; 20 img.src = window.create BlobURL(file);20 img.src = window.createObjectURL(file); 21 21 } 22 22 -
trunk/LayoutTests/fast/files/apply-blob-url-to-xhr.html
r66690 r70102 27 27 { 28 28 var file = document.getElementById("file").files[0]; 29 var fileURL = window.create BlobURL(file);29 var fileURL = window.createObjectURL(file); 30 30 31 31 log("Test that XMLHttpRequest GET succeeds."); … … 36 36 37 37 log("Test that XMLHttpRequest GET fails after the blob URL is revoked."); 38 window.revoke BlobURL(fileURL);38 window.revokeObjectURL(fileURL); 39 39 sendXMLHttpRequest("GET", fileURL); 40 40 -
trunk/LayoutTests/fast/files/create-blob-url-crash-expected.txt
r67734 r70102 1 Test that create BlobURL with no argument should not cause crash.1 Test that createObjectURL with no argument should not cause crash. 2 2 PASS 3 3 DONE -
trunk/LayoutTests/fast/files/create-blob-url-crash.html
r67734 r70102 10 10 function test() 11 11 { 12 log("Test that create BlobURL with no argument should not cause crash.");13 var url = create BlobURL();12 log("Test that createObjectURL with no argument should not cause crash."); 13 var url = createObjectURL(); 14 14 log(url == undefined ? "PASS" : "FAIL"); 15 15 -
trunk/LayoutTests/fast/files/revoke-blob-url-expected.txt
r68275 r70102 1 Test calling revoke BlobURL with no argument.1 Test calling revokeObjectURL with no argument. 2 2 PASS 3 Test calling revoke BlobURL with empty URL.3 Test calling revokeObjectURL with empty URL. 4 4 PASS 5 Test calling revoke BlobURL with invalid URL.5 Test calling revokeObjectURL with invalid URL. 6 6 PASS 7 Test calling revoke BlobURL with non-existent URL.7 Test calling revokeObjectURL with non-existent URL. 8 8 PASS 9 9 DONE -
trunk/LayoutTests/fast/files/revoke-blob-url.html
r68275 r70102 10 10 function test() 11 11 { 12 log("Test calling revoke BlobURL with no argument.");13 var url = revoke BlobURL();12 log("Test calling revokeObjectURL with no argument."); 13 var url = revokeObjectURL(); 14 14 log(url == undefined ? "PASS" : "FAIL"); 15 15 16 log("Test calling revoke BlobURL with empty URL.");17 revoke BlobURL("");16 log("Test calling revokeObjectURL with empty URL."); 17 revokeObjectURL(""); 18 18 log("PASS"); 19 19 20 log("Test calling revoke BlobURL with invalid URL.");21 revoke BlobURL("[foo bar]");20 log("Test calling revokeObjectURL with invalid URL."); 21 revokeObjectURL("[foo bar]"); 22 22 log("PASS"); 23 23 24 log("Test calling revoke BlobURL with non-existent URL.");25 revoke BlobURL("blob:non-existent");24 log("Test calling revokeObjectURL with non-existent URL."); 25 revokeObjectURL("blob:non-existent"); 26 26 log("PASS"); 27 27 -
trunk/LayoutTests/fast/files/workers/resources/worker-apply-blob-url-to-xhr.js
r66690 r70102 20 20 { 21 21 var file = event.data; 22 var fileURL = create BlobURL(file);22 var fileURL = createObjectURL(file); 23 23 24 24 log("Test that XMLHttpRequest GET succeeds."); … … 30 30 31 31 log("Test that XMLHttpRequest GET fails after the blob URL is revoked."); 32 revoke BlobURL(fileURL);32 revokeObjectURL(fileURL); 33 33 sendXMLHttpRequest("GET", fileURL); 34 34 -
trunk/WebCore/ChangeLog
r70095 r70102 1 2010-10-19 Jian Li <jianli@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Rename createBlobURL to createObjectURL and revokeBlobURL to 6 revokeObjectURL per the latest File API spec. 7 https://bugs.webkit.org/show_bug.cgi?id=47934 8 9 * inspector/front-end/ResourcesPanel.js: 10 (WebInspector.ResourcesPanel.prototype._contextMenu): 11 * inspector/front-end/utilities.js: 12 * page/DOMWindow.cpp: 13 (WebCore::DOMWindow::createObjectURL): 14 (WebCore::DOMWindow::revokeObjectURL): 15 * page/DOMWindow.h: 16 * page/DOMWindow.idl: 17 * workers/WorkerContext.cpp: 18 (WebCore::WorkerContext::createObjectURL): 19 (WebCore::WorkerContext::revokeObjectURL): 20 * workers/WorkerContext.h: 21 * workers/WorkerContext.idl: 22 1 23 2010-10-19 Alexey Proskuryakov <ap@apple.com> 2 24 -
trunk/WebCore/inspector/front-end/ResourcesPanel.js
r70045 r70102 1275 1275 1276 1276 var needSeparator = false; 1277 // create BlobURL is enabled conditionally, do not expose resource export if it's not available.1278 if (typeof window.create BlobURL === "function" && Preferences.resourceExportEnabled) {1277 // createObjectURL is enabled conditionally, do not expose resource export if it's not available. 1278 if (typeof window.createObjectURL === "function" && Preferences.resourceExportEnabled) { 1279 1279 if (resource) 1280 1280 contextMenu.appendItem(WebInspector.UIString("Export to HAR"), this._exportResource.bind(this, resource)); -
trunk/WebCore/inspector/front-end/utilities.js
r70046 r70102 998 998 builder.append(contents); 999 999 var blob = builder.getBlob("application/octet-stream"); 1000 var url = window.create BlobURL(blob);1000 var url = window.createObjectURL(blob); 1001 1001 window.open(url); 1002 1002 } -
trunk/WebCore/page/DOMWindow.cpp
r69798 r70102 1577 1577 1578 1578 #if ENABLE(BLOB) 1579 String DOMWindow::create BlobURL(Blob* blob)1579 String DOMWindow::createObjectURL(Blob* blob) 1580 1580 { 1581 1581 return scriptExecutionContext()->createPublicBlobURL(blob).string(); 1582 1582 } 1583 1583 1584 void DOMWindow::revoke BlobURL(const String& blobURLString)1584 void DOMWindow::revokeObjectURL(const String& blobURLString) 1585 1585 { 1586 1586 scriptExecutionContext()->revokePublicBlobURL(KURL(KURL(), blobURLString)); -
trunk/WebCore/page/DOMWindow.h
r69540 r70102 393 393 #endif 394 394 #if ENABLE(BLOB) 395 String create BlobURL(Blob*);396 void revoke BlobURL(const String&);395 String createObjectURL(Blob*); 396 void revokeObjectURL(const String&); 397 397 #endif 398 398 -
trunk/WebCore/page/DOMWindow.idl
r69782 r70102 764 764 765 765 #if defined(ENABLE_BLOB) && ENABLE_BLOB 766 [ConvertNullStringTo=Undefined] DOMString create BlobURL(in Blob blob);767 void revoke BlobURL(in DOMString blobURL);766 [ConvertNullStringTo=Undefined] DOMString createObjectURL(in Blob blob); 767 void revokeObjectURL(in DOMString blobURL); 768 768 #endif 769 769 -
trunk/WebCore/workers/WorkerContext.cpp
r69262 r70102 341 341 342 342 #if ENABLE(BLOB) 343 String WorkerContext::create BlobURL(Blob* blob)343 String WorkerContext::createObjectURL(Blob* blob) 344 344 { 345 345 return scriptExecutionContext()->createPublicBlobURL(blob).string(); 346 346 } 347 347 348 void WorkerContext::revoke BlobURL(const String& blobURLString)348 void WorkerContext::revokeObjectURL(const String& blobURLString) 349 349 { 350 350 scriptExecutionContext()->revokePublicBlobURL(KURL(ParsedURLString, blobURLString)); -
trunk/WebCore/workers/WorkerContext.h
r69249 r70102 122 122 123 123 #if ENABLE(BLOB) 124 String create BlobURL(Blob*);125 void revoke BlobURL(const String&);124 String createObjectURL(Blob*); 125 void revokeObjectURL(const String&); 126 126 #endif 127 127 -
trunk/WebCore/workers/WorkerContext.idl
r69782 r70102 102 102 attribute FileReaderConstructor FileReader; 103 103 attribute FileReaderSyncConstructor FileReaderSync; 104 DOMString create BlobURL(in Blob blob);105 void revoke BlobURL(in DOMString blobURL);104 DOMString createObjectURL(in Blob blob); 105 void revokeObjectURL(in DOMString blobURL); 106 106 #endif 107 107
Note: See TracChangeset
for help on using the changeset viewer.