blob: 6f86aecb85968ce4221313d718880ca2330bb445 [file] [log] [blame]
CONSOLE MESSAGE: Unhandled Promise Rejection: NotAllowedError (DOM Exception 35): The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
Test that "fullscreen requires user gesture restriction" is removed by a user gesture.
Click me!
RUN(internals.settings.setAllowsInlineMediaPlayback(false))
RUN(internals.setMediaElementRestrictions(video, "RequireUserGestureForFullscreen"))
* set video.src
EVENT(canplaythrough)
* video.play() should fail
RUN(video.play())
EXPECTED (video.paused == 'true') OK
* clicking button
EVENT(click)
* video.play() should work from within a click handler
EXPECTED (video.paused == 'true') OK
RUN(video.play())
EVENT(webkitfullscreenchange)
EXPECTED (video.paused == 'false') OK
END OF TEST