From c5212b36f7422fb6b27a7a4e9e5ec71a38e42408 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 4 Nov 2014 18:49:57 +0800 Subject: [PATCH] External links should have "foreground-tab" disposition --- atom/browser/api/atom_api_web_contents.cc | 2 +- atom/browser/native_window.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index b68b9503..5045efae 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -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; } diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 36ca2a8a..a4366649 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -438,7 +438,7 @@ bool NativeWindow::ShouldCreateWebContents( WillCreatePopupWindow(frame_name, target_url, partition_id, - CURRENT_TAB)); + NEW_FOREGROUND_TAB)); return false; } -- 2.43.0