Skip to content

Commit 0956aff

Browse files
Consume user activation when requesting PiP
1 parent f3ef898 commit 0956aff

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

index.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ the user agent MUST run the following steps:
197197
these steps.
198198
5. If |video|'s {{HTMLVideoElement/disablePictureInPicture}} is true,
199199
the user agent MAY throw an {{InvalidStateError}} and abort these steps.
200-
6. If {{pictureInPictureElement}} is `null` and the <a>relevant global object</a>
201-
of <a>this</a> does not have <a>transient activation</a>, throw a
202-
{{NotAllowedError}} and abort these steps.
200+
6. If {{pictureInPictureElement}} is `null`:
201+
1. If <a>this</a>'s <a>relevant global object</a> does not have
202+
<a>transient activation</a>, throw a {{NotAllowedError}} and abort these steps.
203+
2. [=Consume user activation=] given <a>this'</a>s <a>relevant global object</a>.
203204
7. If |video| is {{pictureInPictureElement}}, abort these steps.
204205
8. Set {{pictureInPictureElement}} to |video|.
205206
9. Let <dfn>Picture-in-Picture window</dfn> be a new instance of

0 commit comments

Comments
 (0)