[wp-trac] [WordPress Trac] #40866: Video widget does not successfully play several permutations of YouTube URLs

WordPress Trac noreply at wordpress.org
Thu May 25 19:24:32 UTC 2017


#40866: Video widget does not successfully play several permutations of YouTube
URLs
--------------------------+-------------------
 Reporter:  jnylen0       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.8
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-------------------
 When attempting to insert a YouTube video into a video widget via "Insert
 from URL", different kinds of YouTube URLs generate different results:

 - https://www.youtube.com/watch?v=i_cVJgIz_Cs - works fine
 - https://www.youtube.com/watch?v=i_cVJgIz_Cs&feature=youtu.be - does not
 play on the front-end; the video iframe does not appear to have a video ID
 - https://youtu.be/i_cVJgIz_Cs - works fine
 - http://youtu.be/i_cVJgIz_Cs - fails with a mixed-content error on front-
 end page load

 Other notes:

 - All of these URLs appear to work correctly in the media modal preview.
 - This is on a HTTPS-enabled site.
 - Probably unrelated, but I'm getting a lot of errors like `Failed to
 execute 'postMessage' on 'DOMWindow': The target origin provided
 ('https://www.youtube.com') does not match the recipient window's origin
 ('https://mysite.com').` on front-end page load.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40866>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list