Epiphany - TLS support is not available

OS: Debian 12

I have build epiphany manually - see my previous post
BRANCH: gtk-4-17-4
This produced:
-rwxr-xr-x 1 user user 229496 Feb 24 16:49 epiphany

The browser run normally
But cannot access any https sites because of a TLS error
But can access HTTP web sites - SUCCESS!

The browser show this:
The precise error was: TLS support is not available
==>How to enable/config SSL/TLS?

Extra info:
cat /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache
libdconfsettings.so: gsettings-backend
libgiognomeproxy.so: gio-proxy-resolver
libgiognutls.so: gio-tls-backend
libgiolibproxy.so: gio-proxy-resolver
libgioremote-volume-monitor.so: gio-native-volume-monitor,gio-volume-monitor
libgvfsdbus.so: gio-vfs,gio-volume-monitor

Does you manually built epiphany read from the standard prefix '/usr/'?

Related issue: TLS Support Not Available in GNOME on Debian 12 After Upgrade

How do I verify it read from /usr/?
If a launch epiphany from /usr/local/bin, I get the same TLS error

I also tried
sudo gio-querymodules /usr/lib/x86_64-linux-gnu/gio/modules/
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/

If you’re using manually built glib here, epiphany picks GIO modules from that prefix. You need to build glib-networking too in this case.

The following from Gio – 2.0: Overview should help debug the issue.

  • GIO_MODULE_DIR. When this environment variable is set to a path, GIO will load modules from this alternate directory instead of the directory built into GIO. This is useful when running tests, for example. This environment variable is ignored when running in a SUID program.

  • GIO_EXTRA_MODULES. When this environment variable is set to a path, or a set of paths separated by a colon, GIO will attempt to load additional modules from within the path. This environment variable is ignored when running in a SUID program.

1 Like

Yes
This export fixed the problem
export GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/

There is a crash if I say no to the question “Make epiphany your default browser”
Just choose: yes or ask me later and it works

The audio dont work when watching video in the browser
maybe related to:
0:00:11.292321188 2 0x732620010330 ERROR libav gstavviddec.c:1688:gst_ffmpegviddec_negotiate:<avdec_vp9-0> negotiation failed
0:00:12.583377618 2 0x63aaa32d6d40 ERROR webkitdisplay PlatformDisplayGStreamer.cpp:82:gstGLContext: Failed to fill in GStreamer context: glGetString error: 0x500

Thanks