Emit "new-window" event for dispositions other than CURRENT_TAB
This commit is contained in:
parent
77724345c4
commit
013593ccf8
6 changed files with 29 additions and 9 deletions
|
@ -85,10 +85,12 @@ void Window::OnPageTitleUpdated(bool* prevent_default,
|
|||
|
||||
void Window::WillCreatePopupWindow(const base::string16& frame_name,
|
||||
const GURL& target_url,
|
||||
const std::string& partition_id) {
|
||||
const std::string& partition_id,
|
||||
WindowOpenDisposition disposition) {
|
||||
base::ListValue args;
|
||||
args.AppendString(target_url.spec());
|
||||
args.AppendString(frame_name);
|
||||
args.AppendInteger(disposition);
|
||||
Emit("new-window", args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue