Skip to content

YouTube embed previews fail with Error 153 in Safari #73288

Closed

Description

@dcalhoun

Description

YouTube embed previews fail to load in the editor when using the Safari browser. Rather than displaying the YouTube video, a Error 153 Video player configuration error is displayed. This issue does not occur in Chrome.

Step-by-step reproduction instructions

  1. Create a new post.
  2. Insert the YouTube Embed block type.
  3. Paste a valid YouTube video URL.
  4. Click Embed.

Screenshots, screen recording, code snippet

Image
youtube-embed-flow.mov

Environment info

  • WordPress 6.8.3
  • Gutenberg 22.0.0
  • macOS 26.1
  • Safari 26.1 (21622.2.11.11.9)

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Nov 14, 2025
  2. dcalhoun commented on Nov 14, 2025

    @dcalhoun
    MemberAuthor

    My perception is this error relates to YouTube requiring a referrer for embeds. This requirement was documented on July 7, 2025, but YouTube may have begun enforcement more recently.

    From my testing, it seems Gutenberg's usage of iframes (and the attributes used) for the editor canvas and embeds play a role, nullifying the origin or referrer reported for the YouTube embed. I'm unsure of the best solution at this time.

  3. ellatrix commented on Nov 17, 2025

    @ellatrix
    Member

    I can only reproduce in Safari, both Chrome and Firefox work fine.

  4. jkmassel commented on Nov 17, 2025

    @jkmassel
    Contributor
  5. dcalhoun commented on Nov 17, 2025

    @dcalhoun
    MemberAuthor

    This seems to be caused by https://bugs.webkit.org/show_bug.cgi?id=169846.

    To build upon the seemingly relevant Safari issue, I'll note additional findings. It appears setting src to a blob URL also causes Safari to exclude the HTTP_REFERER.

    I explored modifying the approach for populating the iframes in the editor, the outcome differed.

    Population Approach Embed Outcome
    src with a blob URL ❌ Fails
    src with a non-blob URL (e.g., http://[...]) ✅ Succeeds
    srcData ✅ Succeeds
    Manually write iframe contents ❌ Fails
  6. westonruter commented on Dec 10, 2025

    @westonruter
    Member

    Core-64395 was marked as a duplicate.

  7. added
    Browser IssuesIssues or PRs that are related to browser specific problems
    on Mar 19, 2026
  8. larskuhnt commented on Mar 31, 2026

    @larskuhnt

    I think Safari orders the referrer policy in a different way than other browsers do. If your page has e.g. <meta name="referrer" content="no-referrer" /> the iframe attribute referrerpolicy="strict-origin-when-cross-origin" is ignored and the referrer is not sent in iframe requests. The page meta tag needs to define <meta name="referrer" content="strict-origin-when-cross-origin" /> to allow referrer headers in iframe requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Browser IssuesIssues or PRs that are related to browser specific problems[Block] EmbedAffects the Embed Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions