[wp-trac] [WordPress Trac] #47513: JavaScript TypeError when Video Playlists use native video elements

WordPress Trac noreply at wordpress.org
Wed Sep 21 15:29:11 UTC 2022


#47513: JavaScript TypeError when Video Playlists use native video elements
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-screenshots has-patch has-       |     Focuses:  javascript
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54279" 54279]:
 {{{
 #!CommitTicketReference repository="" revision="54279"
 Media: Fix JS TypeError with video playlists and native video.

 Verify that the `resized` property exists on a video in the playlist
 before attempting to read it. Prevent a TypeError from being thrown and
 breaking the playlist if a video type requires native video support.

 Props afercia, here.
 Fixes #47513.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47513#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list