override: set window.opener to null for webview

This commit is contained in:
deepak1556 2015-06-18 21:14:45 +05:30
parent db2042f561
commit cb1d9f60ec

View file

@ -76,6 +76,7 @@ window.prompt = ->
throw new Error('prompt() is and will not be supported.')
# Simple implementation of postMessage.
unless process.guestInstanceId?
window.opener =
postMessage: (message, targetOrigin='*') ->
ipc.send 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPENER_POSTMESSAGE', message, targetOrigin