xeco23/WasIstLos

no media is shown...

Opened this issue ยท 9 comments

Description
All images, videos and stickers are blank.... does not show anything

To Reproduce
Steps to reproduce the behavior:

  1. Going to any chat shows the same bug

Screenshots
image
image

Environment

  • Distro [Arch Linux]
  • Package [yay]
  • Desktop Environment or Window Manager [KDE Plasma on X11]

Faced with a similar problem. Also, since recently I can't send various documents (photos, videos, etc.).

Terminal log:
flatpak run com.github.eneshecan.WhatsAppForLinux
F: Don't share "/dev/log" with sandbox: Path "/dev" is reserved Flatpak
logger: socket /dev/log: There is no such file or directory

Fedora 38 Workstation
Wayland session
Flatpak version application

Friendly hint to debug: Open the browser console and have a look at the 403 (forbidden) responses when the app is trying to request photos or videos.

I'm seeing errors like the following on browser console whenever I try to open media:

[Error] Blocked mixed content blob:https://web.whatsapp.com/<some_uuid_like_string_here> because 'block-all-mixed-content' appears in the Content Security Policy.

YT video thumbnails don't appear either

gree7 commented

A workaround for Arch users: yay -S whatsapp-electron-bin. This one works fine (so far).

Same happends in epiphany browser aka GNOME Web (same webkit engine).

Maybe this app can disable CSP as a temporal workarround.

Maybe setting something like the set_disable_web_security?

I have tried without any success:

        webkit_settings_set_enable_xss_auditor(settings, FALSE);
        webkit_settings_set_disable_web_security(settings, TRUE);

So it needs more investigation.

I was experiencing this issue until today, when a notification appeared on the app to update Whatsapp, and after doing the update I haven't experienced the issue so far.

Disabling hardware acceleration 'fixed' this for me, if that's of use to anyone.