Bug 167012 - Can't fullscreen element if parent element is already fullscreen
Summary: Can't fullscreen element if parent element is already fullscreen
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: Safari 10
Hardware: Mac Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-01-13 11:35 PST by Aloke Desai
Modified: 2018-05-23 07:39 PDT (History)
4 users (show)

See Also:


Attachments
Simple repro case (2.13 KB, application/zip)
2017-01-13 11:35 PST, Aloke Desai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aloke Desai 2017-01-13 11:35:22 PST
Created attachment 298774 [details]
Simple repro case

If a document's body is fullscreen, a child iFrame can't go fullscreen (even though it has the correct allowfullscreen/webkitallowfullscreen attributes). This seems to contradict the WHATWG fullscreen API as any descendant element should be able to go fullscreen if a parent element is already fullscreen. This is works as intended in both Chrome and Firefox.
Comment 1 Radar WebKit Bug Importer 2017-01-13 11:37:04 PST
<rdar://problem/30017129>
Comment 2 Frédéric Wang (:fredw) 2018-05-23 07:39:55 PDT
I can confirm the issue with the repro case. The parent element remains fullscreen when we try to fullscreen the child. However, I don't see any fullscreenerror message.