Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

Customizer (Block Widgets): Missing widget entries for YouTube embeds #55437

Open pauljacobson opened 3 years ago

pauljacobson commented 3 years ago

Steps to Reproduce

  1. Head to Appearance > Customize > Sidebar, and open block widgets
  2. Scroll down to locate YouTube widgets in the widget list in the sidebar
  3. The YouTube embed widgets are not available in the list of editable widgets.

See here:

https://user-images.githubusercontent.com/2912202/129175710-49e8a4d8-5e15-41de-9cc0-498dd00f6365.mp4

and here:

Capture_2021-08-12 at 12 41 01@2x

What I expected to happen

All widgets that appear in the sidebar should be accessible in the widget list in the Customizer sidebar.

What actually happened

Two YouTube embed widgets are not contained in the list of widgets (one of them is a duplicate, so I have given the user Custom CSS to hide the duplicate for the time being).

Context

Customer report in 1459030-hc with a follow-up in 4216613-zen

Operating System

macOS

OS Version

11.5.1

Browser

Firefox

Browser Version(s)

92.0b2

Is this specific to applied theme? If so, what is the theme name?

No, I tested in a preview using Hemmingway Rewritten and issue persists

Simple, Atomic or both?

Simple

Console and/or error logs

Yes, see here: 29f98-pb/

Number of Users Impacted

Most users (>50%)

Available Workarounds

The user wanted to remove a duplicate YouTube video, so I gave them Custom CSS for this.

Reproducibility

Consistent

Other information

The site is https://taaljongen.nl

jerrysarcastic commented 3 years ago

Also reported in https://wordpress.com/forums/topic/cant-find-a-widget-2/

I noted that in the Customizer the widget is not visible so settings cannot be edited for example (the use wanted to update the block to show a different video) even though it is visible in the sidebar.

As a workaround the user was able to edit the YouTube block as normal by visiting the widgets page in wp-admin using https://foobar.baz/wp-admin/widgets.php

Screenshot: https://d.pr/i/XcoshG

jordesign commented 3 years ago

Testing this - it appears that the YouTube widget is in place but it doesn't show the preview of the player which makes it hard to select the block (but not impossible). If a caption is on the embed - you can see it in place in the Block Widget Editor.

Screen Shot 2021-08-24 at 12 27 55 pm

That being said - I have recreated this behavior in:

jordesign commented 3 years ago

I've opened a new issue in the Gutenberg repo to track this instead. https://github.com/WordPress/gutenberg/issues/34252

liviopv commented 3 years ago

Also reported on 31277089-hc. Loading the Block Widgets editor from /wp-admin/widgets.php shows the Youtube Blocks correctly.

I'm seeing this error in the console, which seems to be related:

customize.php:1 Refused to execute script from 'https://artists.youtube.com/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

I updated the core issue as well.

Robertght commented 3 years ago

Another case in 4243856-zen. The workaround through wp-admin/widgets.php did the trick.

ahmadbaig1 commented 2 years ago

I'm seeing a similar issue, not for youtube but for 4 widgets on a user's site and the strange part is that disabling the Gutenberg plugin resolves the issue. 4332310-zd