aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-03-17 10:32:40 +0000
committerStephen Blott2015-03-17 10:32:40 +0000
commit9461d30b0d19fd65dc43e18bebec1fe0fd3ee818 (patch)
tree38336fe71a9d0d345a98b526a417024f23d12bdb /background_scripts
parentaa8d00fd9779d4061431dbdcb7a70b9c39e8049a (diff)
downloadvimium-9461d30b0d19fd65dc43e18bebec1fe0fd3ee818.tar.bz2
Activate vomnibar in window.top; hide on focus.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index b8c015d7..0b19ce4a 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -657,6 +657,10 @@ handleFrameFocused = (request, sender) ->
if frameIdsForTab[tabId]?
frameIdsForTab[tabId] =
[request.frameId, (frameIdsForTab[tabId].filter (id) -> id != request.frameId)...]
+ # Inform all frames that a frame has received the focus.
+ chrome.tabs.sendMessage sender.tab.id,
+ name: "frameFocused"
+ frameId: request.frameId
# Send a message to a all frames in the current tab.
sendMessageToFrames = (request, sender) ->