aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authormrmr19932014-12-15 19:12:41 +0000
committermrmr19932014-12-15 19:12:41 +0000
commit8a2f7bf9db05342bab2442f6b761f855fb0ca209 (patch)
treef3edc0e90f7c6c86fe36f4939f42b8590942d492 /background_scripts
parent5ec7f490b5e9e68bddb415b66b6cae86841a3d52 (diff)
downloadvimium-8a2f7bf9db05342bab2442f6b761f855fb0ca209.tar.bz2
Skip over tiny frames when calling focusThisFrame
GMail and Google Inbox both use a large number of small (typically 0x0 or 1x1 frames) which we have to pass over with nextFrame to get to the frames we want. We avoid this issue by ignoring all frames with height or width < 3, since these will be essentially invisible to the user anyway.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 3ec618c9..647923c0 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -633,6 +633,7 @@ sendRequestHandlers =
registerFrame: registerFrame,
unregisterFrame: unregisterFrame,
frameFocused: handleFrameFocused,
+ nextFrame: (request) -> BackgroundCommands.nextFrame 1, request.frameId
upgradeNotificationClosed: upgradeNotificationClosed,
updateScrollPosition: handleUpdateScrollPosition,
copyToClipboard: copyToClipboard,