Bug 135347 - When deleting an IndexedDatabase file, also invalidate any currently open handles to that database
Summary: When deleting an IndexedDatabase file, also invalidate any currently open han...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-07-28 12:58 PDT by Brady Eidson
Modified: 2022-02-12 18:47 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.