Skip to content
Permalink
Browse files
(iOS) Fix iframes in iOS/WKWebView which were broken by #418. Fixes #424
. (#425)
  • Loading branch information
dpa99c authored and janpio committed Feb 11, 2019
1 parent ae329bc commit 388e3f6ae74b7c59fee43e360427ab73325f9a77
Showing 1 changed file with 3 additions and 3 deletions.
@@ -573,9 +573,9 @@ - (void)webView:(WKWebView *)theWebView decidePolicyForNavigationAction:(WKNavig
}

if(shouldStart){
// Fix GH-417: Handle non-default target attribute
// Based on https://stackoverflow.com/a/25853806/777265
if (!navigationAction.targetFrame.isMainFrame){
// Fix GH-417 & GH-424: Handle non-default target attribute
// Based on https://stackoverflow.com/a/25713070/777265
if (!navigationAction.targetFrame){
[theWebView loadRequest:navigationAction.request];
decisionHandler(WKNavigationActionPolicyCancel);
}else{

0 comments on commit 388e3f6

Please sign in to comment.