aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authormrmr19932014-09-02 17:43:41 +0100
committermrmr19932014-10-31 07:22:12 +0000
commitd65f265a6ad137be0db4d8c86879e5123a10087b (patch)
tree7be59d25dd26f8d1b5d2641ce76bfbd631cae28b /background_scripts/main.coffee
parentfdf592b25ead4c4ec919c1d0e6322d2dba48c1f8 (diff)
downloadvimium-d65f265a6ad137be0db4d8c86879e5123a10087b.tar.bz2
Add comments about moving the Vomnibar to an iframe
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 49417d7a..03d6143d 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -635,8 +635,8 @@ getCurrFrameIndex = (frames) ->
return i if frames[i].id == focusedFrame
frames.length + 1
-# Send message back to the tab unchanged.
-# Frames in the same tab can use this to communicate securely.
+# Send message back to the tab unchanged. This allows different frames from the same tab to message eachother
+# while avoiding security concerns such as eavesdropping or message spoofing.
echo = (request, sender) ->
delete request.handler # No need to send this information
chrome.tabs.sendMessage(sender.tab.id, request)