Skip to content

Commit

Permalink
chore(autowait): auto-wait for top level navigations only (#5861)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Mar 17, 2021
1 parent 5ae731a commit 84efdfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/frames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 84efdfc

Please sign in to comment.