External links should have "foreground-tab" disposition

This commit is contained in:
Cheng Zhao 2014-11-04 18:49:57 +08:00
parent 033212841d
commit c5212b36f7
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -438,7 +438,7 @@ bool NativeWindow::ShouldCreateWebContents(
WillCreatePopupWindow(frame_name,
target_url,
partition_id,
CURRENT_TAB));
NEW_FOREGROUND_TAB));
return false;
}