From 84efdfcbc9f675a266d3be0ff42725d54c40889e Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 18 Mar 2021 05:47:51 +0800 Subject: [PATCH] chore(autowait): auto-wait for top level navigations only (#5861) --- src/server/frames.ts | 3 +++ 1 file changed, 3 insertions(+) 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)