DescriptionIndexed DB: Prevent inspector from re-creating deleted databases
The dev tools resources panel maintains some state (e.g. selected
database/store names) to support actions like paging through data, but
doesn't keep connections open as that would block script actions (like
upgrades). If a database is deleted by script and the UI is poked the
inspector will attempt to re-open the database by name. But with the
Indexed DB API this will implicitly re-create it (at version 1, no
stores).
Fix this by handling the "upgradeneeded" event and aborting the
upgrade transaction, which is the same way that script would avoid
implicitly recreating a database.
BUG=539931
R=cmumford@chromium.org
Committed: https://crrev.com/223dd6ea885c085cf5a600345dd164c3e03a0ca3
Cr-Commit-Position: refs/heads/master@{#355651}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Added tests #
Messages
Total messages: 9 (2 generated)
|