[Chromium] webkitStorageInfo methods (for quota API) should not crash when error callback is not given. webkitStorageInfo.queryUsageAndQuota() and webkitStorageInfo.requestQuota() take error callback as optional argument, but it crashes when null is given as the error callback.
Created attachment 95518 [details] Patch
Comment on attachment 95518 [details] Patch Why the patch has no test?
Created attachment 95542 [details] Patch
Added tests. (We have not added DRT/test-shell support for quota API yet and it is chromium-only fix, so the test is currently marked to be skipped everywhere for now.)
Comment on attachment 95542 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=95542&action=review > LayoutTests/ChangeLog:18 > + * storage/storageinfo-query-usage.html: Removed unnecessary js inclusion. > + * storage/storageinfo-request-quota.html: Removed unnecessary js inclusion. Are they related to this bug? > LayoutTests/storage/storageinfo-no-callbacks.html:9 > +<script src="script-tests/storageinfo-no-callbacks.js"></script> nit: We may merge the .js file to this.
Created attachment 95544 [details] Patch
Comment on attachment 95544 [details] Patch ok
Committed r87772: <http://trac.webkit.org/changeset/87772>