Changeset 87772 in webkit
- Timestamp:
- May 31, 2011 10:09:52 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87770 r87772 1 2011-05-31 Kinuko Yasuda <kinuko@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 [Chromium] webkitStorageInfo methods (for quota API) should not crash when error callback is not given. 6 https://bugs.webkit.org/show_bug.cgi?id=61823 7 8 Added a new test for the fix marked the new test 'skipped' on unsupported platforms. 9 10 * platform/chromium/test_expectations.txt: 11 * platform/gtk/Skipped: 12 * platform/mac/Skipped: 13 * platform/qt/Skipped: 14 * platform/win/Skipped: 15 * storage/storageinfo-no-callbacks-expected.txt: Added. 16 * storage/storageinfo-no-callbacks.html: Added. 17 1 18 2011-05-31 Hironori Bono <hbono@chromium.org> 2 19 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r87754 r87772 201 201 WONTFIX SKIP MAC WIN : platform/chromium/fast/text/chromium-linux-fontconfig-renderstyle.html = FAIL 202 202 203 // Quota API is not yet enabled by default. 204 BUGCR61676 SKIP : storage/storageinfo-query-usage.html = FAIL 205 BUGCR61676 SKIP : storage/storageinfo-request-quota.html = FAIL 203 // Quota API is not supported in DRT yet. 204 BUGCR84572 SKIP : storage/storageinfo-query-usage.html = FAIL 205 BUGCR84572 SKIP : storage/storageinfo-request-quota.html = FAIL 206 BUGCR84572 SKIP : storage/storageinfo-no-callbacks.html = FAIL 206 207 207 208 // Animation API is disabled -
trunk/LayoutTests/platform/gtk/Skipped
r87770 r87772 339 339 storage/storageinfo-query-usage.html 340 340 storage/storageinfo-request-quota.html 341 storage/storageinfo-no-callbacks.html 341 342 342 343 # This platform does not support the Page Visibility API. -
trunk/LayoutTests/platform/mac/Skipped
r87705 r87772 336 336 storage/storageinfo-query-usage.html 337 337 storage/storageinfo-request-quota.html 338 storage/storageinfo-no-callbacks.html 338 339 339 340 # Expose title direction in WebKit API -
trunk/LayoutTests/platform/qt/Skipped
r87770 r87772 2456 2456 storage/storageinfo-query-usage.html 2457 2457 storage/storageinfo-request-quota.html 2458 storage/storageinfo-no-callbacks.html 2458 2459 2459 2460 # Expose title direction in WebKit API -
trunk/LayoutTests/platform/win/Skipped
r87770 r87772 1267 1267 storage/storageinfo-query-usage.html 1268 1268 storage/storageinfo-request-quota.html 1269 storage/storageinfo-no-callbacks.html 1269 1270 1270 1271 # Expose title direction in WebKit API -
trunk/Source/WebKit/chromium/ChangeLog
r87764 r87772 1 2011-05-31 Kinuko Yasuda <kinuko@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 [Chromium] webkitStorageInfo methods (for quota API) should not crash when error callback is not given. 6 https://bugs.webkit.org/show_bug.cgi?id=61823 7 8 Fixed assertion on errorCallback parameter. 9 10 Test: storage/quotainfo-no-callbacks.html 11 12 * src/StorageInfoChromium.cpp: 13 (WebCore::StorageInfo::queryUsageAndQuota): 14 (WebCore::StorageInfo::requestQuota): 15 1 16 2011-05-31 Daniel Erat <derat@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/src/StorageInfoChromium.cpp
r86135 r87772 53 53 void fireStorageInfoErrorCallback(PassRefPtr<StorageInfoErrorCallback> errorCallback, ExceptionCode ec) 54 54 { 55 ASSERT(errorCallback); 55 if (!errorCallback) 56 return; 56 57 ExceptionCodeDescription description; 57 58 getExceptionCodeDescription(ec, description); … … 72 73 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); 73 74 webFrame->client()->queryStorageUsageAndQuota(webFrame, static_cast<WebStorageQuotaType>(storageType), new WebStorageQuotaCallbacksImpl(successCallback, errorCallback)); 74 } else if (errorCallback){75 } else { 75 76 // FIXME: calling this on worker is not yet supported. 76 77 fireStorageInfoErrorCallback(errorCallback, NOT_SUPPORTED_ERR); … … 90 91 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); 91 92 webFrame->client()->requestStorageQuota(webFrame, static_cast<WebStorageQuotaType>(storageType), newQuotaInBytes, new WebStorageQuotaCallbacksImpl(successCallback, errorCallback)); 92 } else if (errorCallback){93 } else { 93 94 // FIXME: calling this on worker is not yet supported. 94 95 fireStorageInfoErrorCallback(errorCallback, NOT_SUPPORTED_ERR);
Note: See TracChangeset
for help on using the changeset viewer.