Skip to content

Commit 81cdc57

Browse files
committed
Wait out any remaining pending requests before opening a new page.
We already had a comment stating to do this to prevent ajax requests being stuck or interfering with the following page, but only used process_page_load which is NOT the same as wait_for_pending_requests.
1 parent 2d8deb8 commit 81cdc57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/WWW/WebKit2/Navigator.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ sub open {
1212

1313
# make sure previous page, if existing, has finished all its work and there are no
1414
# ajax requests or the like stuck in the pipeline
15+
$self->wait_for_pending_requests;
1516
$self->process_page_load;
1617

1718
if ($url =~ /^http[s]?:/ or $url =~ /^file:/) {

0 commit comments

Comments
 (0)