Bug 135347

Summary: When deleting an IndexedDatabase file, also invalidate any currently open handles to that database
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: 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   

Description Brady Eidson 2014-07-28 12:58:26 PDT
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)
Comment 1 Radar WebKit Bug Importer 2014-07-29 09:34:11 PDT
<rdar://problem/17842744>
Comment 2 Brent Fulgham 2022-02-12 18:47:26 PST
Resolved by Modern IDB implementation.