Dgg chat steals input focus in Blink browsers when switching tabs
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 46
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
Steps:
- Open a stream with chat open
- Load dgg chat on that stream
- Switch back to sgg chat
- Now switch to another browser tab and switch back
- Observe how the input field on sgg chat has focus for a second or so but then loses it
This is caused by dgg chat requesting focus.
Firefox disallows focus on elements which are have visibility: hidden or display: none.
It seems this is not the case in Blink browsers when the focusing element is in an iframe.
Possible solution would be to unload/reload the dgg chat.
Not ideal, causing friction in switching between chats; although favoring sgg chat 😏
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the listed chat and browser-tab switching sequence in a Blink browser, comparing it with Firefox. No files or tests are named in the issue, so trace where the dgg and sgg chat iframes are shown or hidden and where focus is requested. Done means sgg chat keeps focus after returning to the tab without disrupting chat switching.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100