Bug 227836

Summary: When you close the full-screen video, the browser causes you to go to the previous page
Product: WebKit Reporter: Sergiy Taran <tarannsergiy>
Component: HistoryAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: beidson, jer.noble, peng.liu6, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: iPhone / iPad   
OS: iOS 14   
Attachments:
Description Flags
Video with reproduced error none

Sergiy Taran
Reported 2021-07-09 06:40:14 PDT
I have iframe and i insert video (mp4) in iframe. After that i open this video in full screen after that i close full screen mode and after close full screen mode browser trigger go back history
Attachments
Video with reproduced error (3.19 MB, video/mp4)
2021-07-16 06:23 PDT, Sergiy Taran
no flags
Alexey Proskuryakov
Comment 1 2021-07-12 19:49:00 PDT
Could you please provide a complete test (either attached here or hosted somewhere)?
Sergiy Taran
Comment 2 2021-07-16 06:23:14 PDT
Created attachment 433672 [details] Video with reproduced error
Radar WebKit Bug Importer
Comment 3 2021-07-16 06:41:15 PDT
Jer Noble
Comment 4 2021-07-16 11:11:56 PDT
This behavior is intentional, though it sounds like it's buggy. The intent is that, when a user clicks a link to a media file, it opens in fullscreen mode, and closing the fullscreen presentation will take them back to the original page. This _should_ only occur in a top-level document navigation, not an iframe.
Note You need to log in before you can comment on or make changes to this bug.