diff --git a/src/server/frames.ts b/src/server/frames.ts index 9f7fe310fcd68..0fb83a3ce01f6 100644 --- a/src/server/frames.ts +++ b/src/server/frames.ts @@ -1243,6 +1243,9 @@ class SignalBarrier { } async addFrameNavigation(frame: Frame) { + // Auto-wait top-level navigations only. + if (frame.parentFrame()) + return; this.retain(); const waiter = helper.waitForEvent(null, frame, Frame.Events.Navigation, (e: NavigationEvent) => { if (!e.error && this._progress)