File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,9 @@ sub init_webkit {
375375 if ($self -> view-> get_uri =~ s / #.*// r ) ne ($action -> get_request-> get_uri =~ s / #.*// r )
376376 and not $action -> is_redirect;
377377 }
378+ else {
379+ $self -> active_navigation_action(' ' );
380+ }
378381 }
379382
380383 $decision -> use;
@@ -460,6 +463,10 @@ sub handle_resource_request {
460463 $self -> active_navigation_action(' ' ) if $uri eq $self -> active_navigation_action;
461464 delete $self -> pending_requests-> {" $request " } if defined $self ;
462465 });
466+ $resource -> signal_connect(' failed-with-tls-errors' => sub {
467+ $self -> active_navigation_action(' ' ) if $uri eq $self -> active_navigation_action;
468+ delete $self -> pending_requests-> {" $request " } if defined $self ;
469+ });
463470}
464471
465472sub setup_xvfb {
Original file line number Diff line number Diff line change @@ -18,4 +18,10 @@ $wkit->init;
1818$wkit -> open (" $Bin /test/iframe.html" );
1919ok(1, ' opened' );
2020
21+ $wkit -> click(' id=iframeDisplay' );
22+ $wkit -> active_navigation_action(' http://fakewebsite.com' );
23+ $wkit -> refresh;
24+ $wkit -> active_navigation_action(' http://fakewebsite.com' );
25+
26+ $wkit -> click(' id=iframeDisplay' );
2127done_testing;
Original file line number Diff line number Diff line change 1818 < iframe src ="about:blank "> </ iframe >
1919 < iframe src ="about:help "> </ iframe >
2020 < iframe src ="about:config "> </ iframe >
21+ </ br >
22+ < button id ="iframe_open " onclick ="displayIframe() " > click me</ button >
23+ </ br >
24+ < div id ="iframeDisplay "> </ div >
2125
26+ < script >
27+ function displayIframe ( ) {
28+ document . getElementById ( "iframeDisplay" ) . innerHTML = "<iframe id=\"test_frame\" src=\"about:blank\"></iframe>" ;
29+
30+ }
31+ </ script >
2232 </ body >
2333</ html >
You can’t perform that action at this time.
0 commit comments