Bug 318323

Summary: Digital Credentials: Drain virtual wallet behavior and pending handler maps on document or page destruction
Product: WebKit Reporter: Marcos Caceres <marcosc>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 26   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 268516    

Marcos Caceres
Reported 2026-07-01 02:19:24 PDT
The WebDriver BiDi digitalCredentials agent stores per-context virtual wallet behaviors and parked "wait" completion handlers, but those maps are only cleared when the automation session ends. On a WebProcess crash or a page/frame closing without a JS-side abort, the entries persist until session end. A destruction hook (page-level as well, since willDestroyFrame only fires for subframes) should drain the maps. Memory-safe (leak, not crash). Follow-up to the Digital Credentials WebDriver support (bug 306292) and the WebKitTestRunner support (bug 318290).
Attachments
Radar WebKit Bug Importer
Comment 1 2026-07-08 02:20:15 PDT
Note You need to log in before you can comment on or make changes to this bug.