-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
PDF embedding/preview is greedily blocked on Android Firefox/Chrome even though it should work#58891
Enhancement
Copy link
Labels
[Block] EmbedAffects the Embed BlockAffects the Embed Block[Block] FileAffects the File BlockAffects the File Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Description
In an Android 13 device with Firefox and Chrome browsers, it is possible to have inline embed PDF be visible. But the present implementation based on discussions in #46382 #34825 etc makes it that if the User Agent includes "Mobi" or "Android" the pdf embed is hidden totally.1
This greedily blocks even browsers/devices that do support PDF
Step-by-step reproduction instructions
- Go to Gutenberg editor
- Insert a file block with preview turned on
- Go to a mobile device
- Do not see the preview
Screenshots, screen recording, code snippet
No response
Environment info
Android 13 with wordpress.com blog
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
Metadata
Metadata
Assignees
Labels
[Block] EmbedAffects the Embed BlockAffects the Embed Block[Block] FileAffects the File BlockAffects the File Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.