Bug 217509
| Summary: | Element.requestFullscreen will unintended change document.activeElement | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | abc |
| Component: | DOM | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/70161671>