From 9770fc7989a9026ac4f364ffbf89514dfc24a1bd Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 23 Nov 2014 14:45:13 +0000 Subject: Frames; do not guess frame on unregisterFrame. --- background_scripts/main.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index ddf5ed2c..9d6d1216 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -610,7 +610,8 @@ unregisterFrame = (request, sender) -> else removingCurrent = frameIdsForTab[tabId].length and frameIdsForTab[tabId][0] == request.frameId frameIdsForTab[tabId] = frameIdsForTab[tabId].filter (id) -> id != request.frameId - BackgroundCommands.nextFrame 0 if removingCurrent + # NOTE(smblott) It's not clear whether the following is either needed or a good idea. + # BackgroundCommands.nextFrame 0 if removingCurrent handleFrameFocused = (request, sender) -> tabId = sender.tab.id -- cgit v1.2.3