-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embeds flicker in editor in Safari as of 7.6 #20614
Comments
I can replicate this in Safari 13.0.5 and Gutenberg 7.7.1, with a Vimeo link. The embed flickers on and off very fast. Console keeps spewing the following:
|
Safari 13.1 on MacOS 10.15.4 has the same issue, also on localhost. |
I can replicate this issue in Safari 13.0.5, using Gutenberg 7.8.0, and with a YouTube link: https://d.pr/v/r2lh1i Same site using Chrome 80.0.3987.149 for comparison: https://d.pr/v/Z20iNm |
#18258635-hc |
Another report: |
Another report: #2821554-zen |
I can see a single flicker when initially loading the Editor and adding a new YouTube embed in Chrome 80.0.3987.149 as well. |
Another report by @p3ob7o internal P2: p58i-8Oj-p2
|
Hi there! I just tested this locally, and I can confirm that it's flickering in my Safari as well. 5a5564b#diff-1dc93e334dab1ec57a6276b899a639f7 I noticed that the I don't have a solution (yet). But I thought I'd point this out! Reverting this change fixes it for me! Update: It looks like the reason why it's breaking in Safari is from this comparison: const forceRerender = prevProps.html !== this.props.html; In Chrome, the ( However, in Safari, the ( Safari:
Update: Nevermind! See next comment regarding |
Cross-referencing: bug introduced in #20176 |
Update! The
I have a fix! Will create a PR very very soon! |
Just create a PR for the fix! 🤞 |
Describe the bug
As of Gutenberg 7.6, the YouTube embed block will flicker in Safari in the editor. Downgrading to 7.5 seems to fix the issue.
To reproduce
Steps to reproduce the behavior:
Expected behavior
That the video previews as usual.
Screenshots
Video of flickering: https://cloudup.com/cGtCQRz8i8s
The editor contains a three column block with a YouTube video in each column, and a single YouTube video below that.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: