go to: https://codepen.io/anon/pen/Noqmvx (on safari) 1. start playing the video. 2. click on the picture in picture icon. 3. click on the 'x' (close) button in the picture in picture window. There will be 3 events of 'webkitpresentationmodechanged': 1. one for entering PiP. 2. two for exiting PiP. I would expect to have 1 event for the exit.
<rdar://problem/47527002>
Created attachment 376959 [details] A WIP patch
Attachment 376959 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:9: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 377137 [details] A patch to fix it
Comment on attachment 377137 [details] A patch to fix it Clearing flags on attachment: 377137 Committed r249141: <https://trac.webkit.org/changeset/249141>
All reviewed patches have been landed. Closing bug.