WordPress.org

Make WordPress Core

Opened 15 months ago

#44705 new defect (bug)

Edit embed contents without saving post breaks previews

Reported by: 7studio Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.7
Component: Embeds Keywords:
Focuses: Cc:
PR Number:

Description

It seems that when we insert embed content and edit it just after without saving the post, the embed preview isn't displayed.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a new post.
  2. Click on "Add Media" button.
  3. Choose "Insert from URL" interface.
  4. Paste a valid YouTube URL: https://www.youtube.com/watch?v=KA_CLal14u4
  5. See the YouTube <iframe> with a 600px width.
  6. Click on "Insert into post" button.
  7. Edit the YouTube video.
  8. See nothing.

Expected behaviour

The embed content should be displayed.

Reason found

None. The problem is present in all browsers.

The Google Chrome console logs Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.youtube.com/watch?v=KA_CLal14u4 with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details..

Change History (0)

Note: See TracTickets for help on using tickets.