diff options
| author | mrmr1993 | 2014-12-15 19:12:41 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-15 19:12:41 +0000 |
| commit | 8a2f7bf9db05342bab2442f6b761f855fb0ca209 (patch) | |
| tree | f3edc0e90f7c6c86fe36f4939f42b8590942d492 /background_scripts | |
| parent | 5ec7f490b5e9e68bddb415b66b6cae86841a3d52 (diff) | |
| download | vimium-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.coffee | 1 |
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, |
