{"action":"closed","issue":{"url":"https://api.github.com/repos/philc/vimium/issues/2099","repository_url":"https://api.github.com/repos/philc/vimium","labels_url":"https://api.github.com/repos/philc/vimium/issues/2099/labels{/name}","comments_url":"https://api.github.com/repos/philc/vimium/issues/2099/comments","events_url":"https://api.github.com/repos/philc/vimium/issues/2099/events","html_url":"https://github.com/philc/vimium/issues/2099","id":148569157,"number":2099,"title":"Vimium loses focus after find mode","user":{"login":"smblott-github","id":2641335,"avatar_url":"https://avatars.githubusercontent.com/u/2641335?v=3","gravatar_id":"","url":"https://api.github.com/users/smblott-github","html_url":"https://github.com/smblott-github","followers_url":"https://api.github.com/users/smblott-github/followers","following_url":"https://api.github.com/users/smblott-github/following{/other_user}","gists_url":"https://api.github.com/users/smblott-github/gists{/gist_id}","starred_url":"https://api.github.com/users/smblott-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smblott-github/subscriptions","organizations_url":"https://api.github.com/users/smblott-github/orgs","repos_url":"https://api.github.com/users/smblott-github/repos","events_url":"https://api.github.com/users/smblott-github/events{/privacy}","received_events_url":"https://api.github.com/users/smblott-github/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T06:45:46Z","updated_at":"2016-04-17T10:57:16Z","closed_at":"2016-04-17T10:57:16Z","body":"Try [this page](http://gothamist.com/2016/04/14/nypd_cyclist_cops_bike_lane.php) or [this one](http://www.thejournal.ie/brothel-owner-dublin-jailed-2715951-Apr2016/).\r\n\r\n- Wait for the page to load.\r\n- `/`, `Escape`, `j`\r\n- The page doesn't scroll.\r\n\r\nWhat's happening is that the focus is ending up in a frame other than the originating frame.  In fact, it's ending up in a frame that hasn't previously received the focus.\r\n\r\nThe effect is that Vimium seems broken.  `gF` recovers, but there's no reason why an average user should think (or even *know*) to do that.\r\n\r\nThis commit fixes things: d24f0500a5f2fa720cf00af0295a87f9377a590e (not merged).  However, I'm nervous about d24f0500a5f2fa720cf00af0295a87f9377a590e, because the UI-component exit sequence is already pretty complicated and d24f0500a5f2fa720cf00af0295a87f9377a590e could have unintended side effects.\r\n\r\nInstead, I think we need to entirely rework the UI-component exit sequence.  And that will require some thought.  What makes things tricky is that, when a UI component closes, Chrome does \"something\" with the focus \"sometime\".  And we don't always know what Chrome is going to do or when.\r\n\r\nI'd label this as a release blocker, except the issue exists in 1.54 too -- so it's not a new problem."}}