aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 2 insertions, 0 deletions
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()