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: | WebDriver | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/181681873>