External links should have "foreground-tab" disposition
This commit is contained in:
parent
033212841d
commit
c5212b36f7
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ bool WebContents::ShouldCreateWebContents(
|
||||||
base::ListValue args;
|
base::ListValue args;
|
||||||
args.AppendString(target_url.spec());
|
args.AppendString(target_url.spec());
|
||||||
args.AppendString(frame_name);
|
args.AppendString(frame_name);
|
||||||
args.AppendInteger(CURRENT_TAB);
|
args.AppendInteger(NEW_FOREGROUND_TAB);
|
||||||
Emit("-new-window", args);
|
Emit("-new-window", args);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -438,7 +438,7 @@ bool NativeWindow::ShouldCreateWebContents(
|
||||||
WillCreatePopupWindow(frame_name,
|
WillCreatePopupWindow(frame_name,
|
||||||
target_url,
|
target_url,
|
||||||
partition_id,
|
partition_id,
|
||||||
CURRENT_TAB));
|
NEW_FOREGROUND_TAB));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue