mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
External links should have "foreground-tab" disposition
This commit is contained in:
@@ -90,7 +90,7 @@ bool WebContents::ShouldCreateWebContents(
|
||||
base::ListValue args;
|
||||
args.AppendString(target_url.spec());
|
||||
args.AppendString(frame_name);
|
||||
args.AppendInteger(CURRENT_TAB);
|
||||
args.AppendInteger(NEW_FOREGROUND_TAB);
|
||||
Emit("-new-window", args);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -438,7 +438,7 @@ bool NativeWindow::ShouldCreateWebContents(
|
||||
WillCreatePopupWindow(frame_name,
|
||||
target_url,
|
||||
partition_id,
|
||||
CURRENT_TAB));
|
||||
NEW_FOREGROUND_TAB));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user