Skip to content

perf: parallelize iframe population in accessibility snapshots (upstream #15083)#3499

Open
kblok wants to merge 4 commits into
masterfrom
implement-upstream-change-15083
Open

perf: parallelize iframe population in accessibility snapshots (upstream #15083)#3499
kblok wants to merge 4 commits into
masterfrom
implement-upstream-change-15083

Conversation

@kblok

@kblok kblok commented Jun 24, 2026

Copy link
Copy Markdown
Member

When page.accessibility.snapshot({ includeIframes: true }) runs on a page with multiple iframes, we were populating each iframe's accessibility tree one at a time. Replaced the sequential foreach loop in PopulateIframesAsync with Task.WhenAll, so all iframes are populated concurrently — matching upstream's Promise.all change.

Upstream: puppeteer/puppeteer#15083

kblok and others added 4 commits June 24, 2026 10:33
…eam #15083)

Replace sequential foreach loop with Task.WhenAll in PopulateIframesAsync,
mirroring upstream's Promise.all optimization. Pages with multiple iframes
now populate their accessibility trees concurrently instead of one-by-one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant