RESOLVED FIXED 210529
Video elements don't return to the correct position when exiting fullscreen
https://bugs.webkit.org/show_bug.cgi?id=210529
Summary Video elements don't return to the correct position when exiting fullscreen
Peng Liu
Reported 2020-04-14 19:53:22 PDT
Video elements don't return to the correct position when exiting fullscreen
Attachments
Patch (7.67 KB, patch)
2020-04-14 20:14 PDT, Peng Liu
no flags
Peng Liu
Comment 1 2020-04-14 19:54:02 PDT
Peng Liu
Comment 2 2020-04-14 20:14:28 PDT
Jer Noble
Comment 3 2020-04-14 21:14:53 PDT
Comment on attachment 396491 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=396491&action=review > Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:780 > page->setSuppressVisibilityUpdates(false); > + page->setNeedsDOMWindowResizeEvent(); Aha! I bet the previous call to `setSuppressVisibilityUpdate(true)` has the unintended side effect of suppressing the "resize" event too! This seems like a fine fix.
Simon Fraser (smfr)
Comment 4 2020-04-15 09:33:29 PDT
Comment on attachment 396491 [details] Patch Can we make a layout test?
Jer Noble
Comment 5 2020-04-15 09:35:18 PDT
(In reply to Simon Fraser (smfr) from comment #4) > Comment on attachment 396491 [details] > Patch > > Can we make a layout test? Layout tests never hit this path, because layout tests (purposefully) don't actually hit the NSWindow layer.
Simon Fraser (smfr)
Comment 6 2020-04-15 10:00:02 PDT
API test then?
Peng Liu
Comment 7 2020-04-15 13:53:33 PDT
This bug is tricky to reproduce with a simple test page. Actually it only happens on some specific website. Filed bug 210568 for it.
EWS
Comment 8 2020-04-15 14:07:20 PDT
Committed r260150: <https://trac.webkit.org/changeset/260150> All reviewed patches have been landed. Closing bug and clearing flags on attachment 396491 [details].
Note You need to log in before you can comment on or make changes to this bug.