Repository navigation
Log page focus, page visibility and window occlusion around a blur-cancelled page's keyboard return - #619
Merged
Conversation
…ncelled page's keyboard return Part of #511. The host logged only the owed page's payment, the page's blur and the shell's focus, so a page that lost the keyboard to another page, to its own hiding, or a shell that sent no sync while macOS reported the window hidden left no trace. Each event carries the display id and state flags, never an address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #511
Summary
main
ae3fdf6d의 desktop e2e에서area cycle native가browser.spec.ts:857에서 두 시도 모두 실패했습니다(run 37416777424).#598의 host log로는 누가 page의 keyboard를 가져갔는지 정할 수 없어, 그 빈칸을 채우는 log만 더합니다. 동작은 바뀌지 않습니다.
window_return page_focused:true29 ms 뒤page_blur, 그 뒤shell_focus가 없습니다. 다른 page의 focus는 log가 없어 그 page인지, page가 숨겨져 응답자를 잃은 것인지 구별되지 않습니다.page_visible:false)였고 5초 동안 page를 다시 보이게 하는 sync가 없었습니다.WasOccluded()를 직접 부르고, 이 길은--disable-backgrounding-occluded-windows를 거치지 않습니다. 그동안 shell은 frame을 그리지 않아 sync를 보내지 않습니다. 지금 log에는 이 상태가 없습니다.desktop/src/main/browser.ts):browser.page_focus: display id, 빚진 page인지(owed_page), 보이는지, window가 key인지, 빚이 남았는지.browser.page_visible: page가 보이거나 숨는 전환마다, display id와 빚진 page인지, hold를 시작한 page인지.browser.window_visible: window의show/hide(macOS의 occlusion 알림 포함).page_blur,window_blur,window_return에 display id(page_blur에는owed_page,visible도)를 더했습니다.docs/BROWSER_DISPLAYS.md: 이 log가 무엇을 남기는지 같은 말로 고쳤습니다.Review
desktop/src/main/browser.ts- focus/blur/show/hide listener 안의log.event뿐입니다.page_visible은show()가 실제로 바뀔 때만 찍습니다(같은 값이면 그 전에 return). tab 전환, layer 열고 닫기, Workspace 전환, drag 시작과 끝에 page마다 한 번입니다. frame이나 keystroke마다 나지 않습니다.Evidence
verify-web.sh desktop typecheck,desktop lint,desktop test(157 통과) 통과.@needs-focusspec은 운영자의 화면과 keyboard를 쓰므로 로컬에서 돌리지 않았습니다.