Window opened by window.open should have "default" disposition

This commit is contained in:
Cheng Zhao 2014-11-04 18:31:47 +08:00
parent f29c7164f3
commit 22c5720aa2

View file

@ -34,7 +34,8 @@ createGuest = (embedder, url, frameName, options) ->
# Routed window.open messages.
ipc.on 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPEN', (event, args...) ->
event.sender.emit '-new-window', event, args...
[url, frameName, options] = args
event.sender.emit '-new-window', event, url, frameName, 7
if event.sender.isGuest() or event.defaultPrevented
event.returnValue = null
else