Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4b770c0

Browse files
committed
[[ Bug 21107 ]] Further support for blank target links
1 parent de579a6 commit 4b770c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libbrowser/src/libbrowser_osx_webview.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,14 @@ - (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary
11771177

11781178
@implementation MCWebUIDelegate
11791179

1180+
- (WebView *)webView:(WebView *)webView
1181+
createWebViewWithRequest:(NSURLRequest *)request
1182+
{
1183+
[[webView frameLoadDelegate] setPendingRequest: false];
1184+
[[webView mainFrame] loadRequest:request];
1185+
return webView;
1186+
}
1187+
11801188
- (NSUInteger)webView:(WebView *)webView dragDestinationActionMaskForDraggingInfo:(id<NSDraggingInfo>)draggingInfo
11811189
{
11821190
return WebDragDestinationActionNone;

0 commit comments

Comments
 (0)