Automattic / wp-calypso

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

File block: PDF not embedding on Safari #83224

Open edwinho89 opened 9 months ago

edwinho89 commented 9 months ago

Quick summary

Embedded PDF on Safari web browser is not loading

Steps to reproduce

  1. Embed PDF on file block on a page or post
  2. Enable "Show inline embed" on file block
  3. Preview the embedded PDF on Safari web browser

What you expected to happen

Embedded PDF loading as expected

What actually happened

The embedded PDF isn't loading, and from Web inspectir, you can see multiple errors 404 relating to Gutenberg 16.8.1 plugin.

image

Also reproducible when viewing https://wordpress.com/support/embed-a-pdf-file/ on Safari

Impact

Most (> 50%)

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

edwinho89 commented 9 months ago

7187451-zd-a8c

github-actions[bot] commented 9 months ago

Support References

This comment is automatically generated. Please do not edit it.

cuemarie commented 9 months ago

📌 REPRODUCTION RESULTS

📌 FINDINGS/SCREENSHOTS/VIDEO I can replicate this on a self-hosted site not connected to WordPress.com, starting with Gutenberg v16.7.0.

📌 ACTIONS

mgozdis commented 9 months ago

Additional report here: 7229622-zd-a8c

Disabling "show inline embed" is a workaround.

cuemarie commented 9 months ago

This was fixed at the Core level with https://github.com/WordPress/gutenberg/pull/55667

📌 ACTIONS

mgozdis commented 8 months ago

User reporting a newish instance of this on a Simple site: 7304933-zd-a8c

I am able to reproduce on a Simple site with comments enabled on the post/page that has the embedded PDF and seems partially related to this bug: https://github.com/Automattic/wp-calypso/issues/84132

It appears to potentially be affecting the 20% of Simple sites using Verbum p7DVsv-j4Q-p2, which this site is. It also works on my test site when unproxied, since Verbum only loads when proxied. Is there a way to disable Verbum on this site to determine if it's the cause or not?

dhackneya8c commented 2 months ago

Another report of this issue in 8183827-zd-a8c on a simple site. Able to replicate on a test simple site as well.

deancroyal commented 2 months ago

Another report here 8224188-zd-a8c on a simple site.

I created a test site and tested across several free themes and found the same issue to persist consistently across them all. In fact, I could not get PDF inline embed to work on any theme I tried. I experienced the same result on both Safari and Chrome web browsers.

nazilya06 commented 2 months ago

Reopened the issue as we have new reports.