WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161121
Web Inspector: IndexedDB.requestDatabase() should not create a database if one did not exist
https://bugs.webkit.org/show_bug.cgi?id=161121
Summary
Web Inspector: IndexedDB.requestDatabase() should not create a database if on...
Joseph Pecoraro
Reported
2016-08-23 18:03:29 PDT
Summary: IndexedDB.requestDatabase() should not create a database if one did not exist. Steps to Reproduce: 1. IndexedDBAgent.requestDatabase("ThisDoesNotExist") => Expected an error, instead got a New Database.
Attachments
IndexedDB Testing
(24.17 KB, image/png)
2025-12-10 17:04 PST
,
Brandon
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brandon
Comment 1
2025-12-10 17:04:02 PST
Created
attachment 477690
[details]
IndexedDB Testing
Brandon
Comment 2
2025-12-10 17:04:53 PST
`IndexedDBAgent.requestDatabase("ThisDoesNotExist")` throws an error when testing in STP 233. See attached screenshot.
Razvan Caliman
Comment 3
2025-12-12 04:54:53 PST
`IndexedDBAgent` does not exist in the namespace of the inspected page. It's a member of an instance of a page target in Web Inspector. One way to access it is via the Web Inspector inspecting the Web Inspector, in the Console, like this: `WI.assumingMainTarget().IndexedDBAgent.requestDatabase()`. The method takes two arguments and calls here:
https://github.com/WebKit/WebKit/blob/c739fc12db36a1c1119fe8ed69a27ceefe9bdde6/Source/WebCore/inspector/agents/InspectorIndexedDBAgent.cpp#L608
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug