Skip to content

Commit 84efdfc

Browse files
authored
chore(autowait): auto-wait for top level navigations only (#5861)
1 parent 5ae731a commit 84efdfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/frames.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,9 @@ class SignalBarrier {
12431243
}
12441244

12451245
async addFrameNavigation(frame: Frame) {
1246+
// Auto-wait top-level navigations only.
1247+
if (frame.parentFrame())
1248+
return;
12461249
this.retain();
12471250
const waiter = helper.waitForEvent(null, frame, Frame.Events.Navigation, (e: NavigationEvent) => {
12481251
if (!e.error && this._progress)

0 commit comments

Comments
 (0)