aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-12-02 18:49:42 +0000
committermrmr19932017-12-02 18:49:42 +0000
commitf32dfbfc650a873d1f91ac3fb21383fb02423c7f (patch)
tree0070516167c3c8b21ea181e5c08475d0ad51f412
parent601aad57c843ff1368c5a9e152ea609431cac1a0 (diff)
downloadvimium-f32dfbfc650a873d1f91ac3fb21383fb02423c7f.tar.bz2
Only send link hints messages to frames which have registered
This puts link hints frame behaviour back to matching fb00eaa6bd4ee8889d10a9ef9d976fefd3be7879 In particular, we go back to not sending link hints messages to frames that are too small (according to DomUtils.windowIsTooSmall).
-rw-r--r--background_scripts/main.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index d87109f4..e3188a26 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -389,7 +389,8 @@ HintCoordinator =
prepareToActivateMode: (tabId, originatingFrameId, {modeIndex, isVimiumHelpDialog}) ->
@tabState[tabId] = {frameIds: frameIdsForTab[tabId][..], hintDescriptors: {}, originatingFrameId, modeIndex}
- @tabState[tabId].ports = extend {}, portsForTab[tabId]
+ @tabState[tabId].ports = {}
+ frameIdsForTab[tabId].map (frameId) => @tabState[tabId].ports[frameId] = portsForTab[tabId][frameId]
@sendMessage "getHintDescriptors", tabId, {modeIndex, isVimiumHelpDialog}
# Receive hint descriptors from all frames and activate link-hints mode when we have them all.