Remove wrapper object reference before loading iframe to enhance security

This commit is contained in:
shortcutme 2018-02-21 03:03:01 +01:00
parent c438b9f8a5
commit fd56ddaa54
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 8 additions and 2 deletions

View file

@ -398,6 +398,12 @@ class Wrapper
@log "Setting title to", window.document.title
onWrapperLoad: =>
# Cleanup secret variables
delete window.wrapper
delete window.wrapper_key
$("#script_init").remove()
# Send message to innerframe
sendInner: (message) ->
@inner.postMessage(message, '*')