Skip to content

Commit 254ea00

Browse files
committed
If the webview is not our webview then we should not be making nagivation action decisions for it.
1 parent 57ee322 commit 254ea00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebViewJavascriptBridge/WebViewJavascriptBridge.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ - (void)webView:(WebView *)webView didFailLoadWithError:(NSError *)error forFram
256256

257257
- (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener
258258
{
259-
if (webView != _webView) { [listener use]; }
259+
if (webView != _webView) { return; }
260260

261261
NSURL *url = [request URL];
262262
if ([[url scheme] isEqualToString:kCustomProtocolScheme]) {

0 commit comments

Comments
 (0)