Bug 250892
Summary: | [Cocoa] Add test coverage for corrupted LocalStorage database | ||
---|---|---|---|
Product: | WebKit | Reporter: | Przemyslaw Gorszkowski <pgorszkowski> |
Component: | New Bugs | Assignee: | Sihui Liu <sihui_liu> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | aperez, sihui_liu, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Przemyslaw Gorszkowski
We need a test to ensure the behavior is expected(restoring the data base file in case of corrupted file of localStorage). It can be an API test doing something like:
(1) making a malformed file (e.g. an empty file with name "localstorage") in LocalStorage directory
(2) creating a web view and loading a web page to store an item in localStorage
(3) creating a second web view and loading a web page with the same url to read the item from localStorage (to ensure the item is stored successfully)
Similar test exists for glib: https://github.com/WebKit/WebKit/pull/8716
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/104740551>
Sihui Liu
Pull request: https://github.com/WebKit/WebKit/pull/11953
EWS
Committed 262161@main (ce073e6cdcf1): <https://commits.webkit.org/262161@main>
Reviewed commits have been landed. Closing PR #11953 and removing active labels.