From c99af1b7d1d559e54a8849a617920f946ca9bd0b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 3 Apr 2016 09:45:22 +0100 Subject: Handle requireHref for link hints locally. The check that an element as an href (for certain hint modes) can be done earlier, thereby avoid the need to pass that information between frames. --- background_scripts/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 68e108fd..b9840757 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -378,7 +378,7 @@ HintCoordinator = console.log "prepareToActivateMode", tabId, "[#{frameIdsForTab[tabId].length}]" if @debug @tabState[tabId] = {frameIds: frameIdsForTab[tabId][..], hintDescriptors: [], originatingFrameId, modeIndex} @tabState[tabId].ports = extend {}, portsForTab[tabId] - @sendMessage "getHintDescriptors", tabId + @sendMessage "getHintDescriptors", tabId, {modeIndex} # Receive hint descriptors from all frames and activate link-hints mode when we have them all. postHintDescriptors: (tabId, frameId, {hintDescriptors}) -> -- cgit v1.2.3