From a36a735fca856bb59dd62b6bc77c56431cc9b9fd Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 16 Dec 2014 15:40:04 +0000 Subject: Add comments to nextFrame logic. --- content_scripts/vimium_frontend.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 4ab6556f..491f5750 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -227,6 +227,8 @@ setScrollPosition = (scrollX, scrollY) -> window.focusThisFrame = (shouldHighlight) -> if window.innerWidth < 3 or window.innerHeight < 3 # This frame is too small to focus. Cancel and tell the background frame to focus the next one instead. + # NOTE(smblott) We assume that there is at least one frame large enough to focus. + # See #1317. chrome.runtime.sendMessage({ handler: "nextFrame", frameId: frameId }) return window.focus() -- cgit v1.2.3