Add "frameName" as paramter for "new-window" event
This commit is contained in:
parent
389e56ce36
commit
fefeb39757
5 changed files with 8 additions and 8 deletions
|
@ -88,7 +88,7 @@ bool WebContents::ShouldCreateWebContents(
|
|||
content::SessionStorageNamespace* session_storage_namespace) {
|
||||
base::ListValue args;
|
||||
args.AppendString(target_url.spec());
|
||||
args.AppendString(partition_id);
|
||||
args.AppendString(frame_name);
|
||||
Emit("new-window", args);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ binding = process.atomBinding 'web_contents'
|
|||
ipc = require 'ipc'
|
||||
|
||||
# Routed window.open messages.
|
||||
ipc.on 'ATOM_SHELL_WEB_CONTENTS_WINDOW_OPEN', (event, url, name, features) ->
|
||||
event.sender.emit 'new-window', url, name, features
|
||||
ipc.on 'ATOM_SHELL_WEB_CONTENTS_WINDOW_OPEN', (event, args...) ->
|
||||
event.sender.emit 'new-window', event, args...
|
||||
|
||||
module.exports.wrap = (webContents) ->
|
||||
return null unless webContents.isAlive()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue