Ensure that window.open does not override the child options

Fixes https://github.com/atom/electron/issues/3652.
This commit is contained in:
Jeff Wear 2015-12-02 11:54:52 -08:00
parent 32e949efed
commit 225fe72d03
2 changed files with 10 additions and 1 deletions

View file

@ -5,7 +5,7 @@ frameToGuest = {}
# Copy attribute of |parent| to |child| if it is not defined in |child|.
mergeOptions = (child, parent) ->
for own key, value of parent when key not in child
for own key, value of parent when key not in Object.keys child
if typeof value is 'object'
child[key] = mergeOptions {}, value
else