From 8a2f7bf9db05342bab2442f6b761f855fb0ca209 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Mon, 15 Dec 2014 19:12:41 +0000 Subject: 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. --- background_scripts/main.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'background_scripts/main.coffee') 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, -- cgit v1.2.3