Focus goes to irrelevant element when I exit DOM fullscreen (steal focus)

NEW
Unassigned

Status

()

Core
DOM: Events
P3
normal
10 months ago
9 months ago

People

(Reporter: arni2033, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 months ago
>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open url   data:text/html,<html onclick="this.requestFullscreen()"><input>
2. Click in input field on the page
3. Press Ctrl+F to open and focus findbar
4. Press Escape to exit DOM fullscreen mode

AR:  Input on the page is focused
ER:  Findbar should stay focused


STR_2:
1. Open url   data:text/html,<html onclick="this.requestFullscreen()"><input>
2. Click in input field on the page
3. Open devtools -> inspector, focus search field "Search HTML"
4. Press Escape to exit DOM fullscreen mode

AR:  Input on the page is focused
ER:  Search field "Search HTML" should stay focused
Blocks: 1209831
No longer blocks: 1277113
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50.1.0, Build ID: 20161208153507

I have managed to reproduce this issue on latest Nightly (53.0a1) build and latest Aurora (52.0a2). 
On latest Firefox (50.1.0) release and latest Beta (51.0b13) build, after I clicked in the input filed nothing happened. The window does not enter in Fullscreen mode and I get a "TypeError: this.requestFullscreen is not a function" error in browser console.

However, I am assigning a component to this issue in order to involve the development team and get an opinion on this.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Unprefixed Fullscreen API is not enabled on release and beta yet, so that's not surprising.

Updated

9 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.