1 parent 898cc64 commit 82e2977Copy full SHA for 82e2977
1 file changed
src/context-providers/a11y-dom/index.ts
@@ -464,6 +464,10 @@ async function fetchIframeAXTrees(
464
siblingPosition: 0, // TODO: Compute sibling position
465
playwrightFrame, // Store Frame for frame resolution
466
});
467
+
468
+ // Update nextFrameIndex to account for any nested frames we just merged
469
+ // This prevents frameIndex collisions when processing subsequent OOPIF frames
470
+ nextFrameIndex = Math.max(nextFrameIndex, ...Array.from(maps.frameMap?.keys() || [0])) + 1;
471
} catch (error) {
472
console.warn(
473
`[A11y] Failed to fetch AX tree for OOPIF frame ${iframeFrameIndex} (url=${frameUrl}):`,
0 commit comments