Bug 135347
| Summary: | When deleting an IndexedDatabase file, also invalidate any currently open handles to that database | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brady Eidson <beidson> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | bfulgham, ddkilzer, jeffrey+webkit, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Brady Eidson
When deleting an IndexedDatabase file, also invalidate any currently open handles to that database
In https://bugs.webkit.org/show_bug.cgi?id=135346 we're making the WKOriginDataManager API actually delete IndexedDatabase files.
But any web page that happens to have an open handle to those files will:
- For read-only operations, they will continue functioning as normal on the unlinked file.
- For write operations, they will start producing errors as SQLite notices the missing backing store.
The handles should be explicitly invalidated with errors sent back to the WebProcess(es)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/17842744>
Brent Fulgham
Resolved by Modern IDB implementation.