Bug 217509 - Element.requestFullscreen will unintended change document.activeElement
Summary: Element.requestFullscreen will unintended change document.activeElement
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-09 02:53 PDT by abc
Modified: 2020-10-09 18:10 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abc 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)
Comment 1 Radar WebKit Bug Importer 2020-10-09 18:10:20 PDT
<rdar://problem/70161671>