Bug 224993

Summary: Web Inspector: Audit: Uncaught Exception: Failed to execute 'delete' on 'IDBObjectStore': The parameter is not a valid key range.
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
URL: https://webkit.org/
Attachments:
Description Flags
Patch none

Description Devin Rousso 2021-04-23 14:05:44 PDT
Uncaught Exception in Web Inspector.

Steps to Reproduce:
1. inspect any page
2. go to the Audits Tab
3. enter Edit mode
4. create a new audit
5. delete the newly added audit

Uncaught Exceptions:
-----------------------
 - Failed to execute 'delete' on 'IDBObjectStore': The parameter is not a valid key range. (at ObjectStore.js:216:35)
    delete @ [native code]
    ? @ ObjectStore.js:216:35
    _open @ ObjectStore.js:59:21
    ? @ ObjectStore.js:210:33
    Promise @ [native code]
    ? @ ObjectStore.js:209:27
    asyncFunctionResume @ [native code]
    asyncFunctionResume @ [native code]
    asyncFunctionResume @ [native code]
    removeTest @ AuditManager.js:309:44
    remove @ AuditTestBase.js:278:39
    ondelete @ AuditTreeElement.js:169:38
    _treeKeyDown @ TreeOutline.js:604:69
    _treeKeyDown @ [native code]
-----------------------

Notes:
Inspected URL:        https://webkit.org/
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Comment 1 Devin Rousso 2021-04-23 14:18:08 PDT
Created attachment 426944 [details]
Patch
Comment 2 BJ Burg 2021-04-26 10:59:34 PDT
Comment on attachment 426944 [details]
Patch

r=me
Comment 3 EWS 2021-04-26 11:08:49 PDT
Committed r276603 (237035@main): <https://commits.webkit.org/237035@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426944 [details].
Comment 4 Radar WebKit Bug Importer 2021-04-26 11:09:23 PDT
<rdar://problem/77166213>