[wp-trac] [WordPress Trac] #52768: WordPress post URL oEmbed rendering blocked by iframe lazy-loading

WordPress Trac noreply at wordpress.org
Fri Mar 19 03:31:18 UTC 2021


#52768: WordPress post URL oEmbed rendering blocked by iframe lazy-loading
---------------------------+--------------------------
 Reporter:  SirStuey       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.7.1
Component:  Embeds         |     Version:  5.7
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:  performance
---------------------------+--------------------------

Comment (by peterwilsoncc):

 I've tested this in macOS Chrome and Chrome Canary embedding on a site in
 both HTTP and HTTPS and am able to reproduce it with WordPress embeds (I
 used wordpress.org and make.wordpress.org posts).

 The source code for a WP embed is using some fairly strong security
 controls (it's basically how WP knows to trust an unapproved oembed
 endpoint) so I am wondering if that is having an effect.

 There is also some JavaScript messaging that gets sent around that may not
 be firing correctly for iframes that haven't yet loaded.

 {{{#!html
 <iframe
   loading="lazy"
   class="wp-embedded-content"
   sandbox="allow-scripts"
   security="restricted"
   style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"
 title="“CSS Chat Agenda: March 18, 2021” — Make
 WordPress Core"
   src="https://make.wordpress.org/core/2021/03/18/css-chat-agenda-
 march-18-2021/embed/#?secret=JDFgX3sbyd"
   data-secret="JDFgX3sbyd"
   width="600" height="338"
   frameborder="0"
   marginwidth="0" marginheight="0"
   scrolling="no">
 </iframe>
 }}}

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


More information about the wp-trac mailing list