[Webkit-unassigned] [Bug 261927] New: [GTK]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 21 18:40:27 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261927

            Bug ID: 261927
           Summary: [GTK]
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P3
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: abhinav at praveen.org.uk
                CC: bugs-noreply at webkitgtk.org

V4L2 Hardware Decode does not work on (only) the flatpak version of Epiphany. It does work on my (Gentoo) distribution package manager install. I start epiphany with `flatpak run --device=all org.gnome.Epiphany` and `flatpak info --show-permissions org.gnome.Epiphany` shows `devices=dri;all;`. I believe this is because `WebKitWebProcess` does not have access to `/dev/video*` inside its sub-sandbox even when the epiphany parent has access to this device.

The code that controls availability of these devices is: https://github.com/WebKit/WebKit/blob/bcba489ee3565d49032694ec6bd67912fdfae6bb/Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.cpp#L51 . For GStreamer's V4L2 Decode to work, ideally, if the webkit application (in this case epiphany), has permissions to enable access to `/dev/video*` (currently it has `devices=all;` permissions), then the sub-sandbox for `WebKitWebProcess` should be allowed access to these `/dev/video*` devices.

As WebKit is AFAIK, the only browser engine on Linux that supports hardware decode on Rockchip devices (RK3399 (mainline support) and potentially soon RK3588 (not yet mainlined)) it would be nice if this is fixed for the Flatpak version.

Related issues:
https://github.com/flatpak/flatpak/issues/5524
https://gitlab.gnome.org/GNOME/epiphany/-/issues/2183

A suitable test video is:
https://www.youtube.com/watch?v=aqz-KE-bpKQ

Flatpak Versions (broken HW decode):
- Epiphany: 44.6
- WebKitGTK: 2.40.4
- GStreamer: 1.20.6
- Distributor: Flathub

System Versions (working HW decode): 
- Epiphany: 44.2
- WebKitGTK: 2.40.1
- GStreamer: 1.20.4
- Distributor: Gentoo

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230922/e637e086/attachment-0001.htm>


More information about the webkit-unassigned mailing list