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

Description Sergiy Taran 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
Comment 1 Alexey Proskuryakov 2021-07-12 19:49:00 PDT
Could you please provide a complete test (either attached here or hosted somewhere)?
Comment 2 Sergiy Taran 2021-07-16 06:23:14 PDT
Created attachment 433672 [details]
Video with reproduced error
Comment 3 Radar WebKit Bug Importer 2021-07-16 06:41:15 PDT
<rdar://problem/80682841>
Comment 4 Jer Noble 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.