Bug 217509

Summary: Element.requestFullscreen will unintended change document.activeElement
Product: WebKit Reporter: abc
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.15   

abc
Reported 2020-10-09 02:53:22 PDT
Element.requestFullscreen() will unintended change document.activeElement on Safari 14+ if Document include an input element. Reproduce: 1. Open https://semibold.github.io/Fullscreen/test/index.html on Safari 14+ 2. Select Consoles tab in DevTools 3. Run `document.body.appendChild(document.createElement('input'))` to insert an input element 4. Run `console.log(document.activeElement)` (log: document.body) 5. Click [Request] button to requestFullscreen on current page 6. Run `console.log(document.activeElement)` (log: input. Expected: document.body)
Attachments
Radar WebKit Bug Importer
Comment 1 2020-10-09 18:10:20 PDT
Note You need to log in before you can comment on or make changes to this bug.