Skip to content

Commit 937e532

Browse files
authored
Merge pull request #73 from sorryforthecommit/cleanup_pending_requests_before_open
Wait out any remaining pending requests before opening a new page.
2 parents b3dc7bd + 81cdc57 commit 937e532

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)