Bug 238347 - [GTK] glib2 2.72.0 causes file:// requests to fail
Summary: [GTK] glib2 2.72.0 causes file:// requests to fail
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
Keywords: Gtk
Depends on:
Reported: 2022-03-24 13:51 PDT by tummychow511
Modified: 2022-06-01 11:25 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description tummychow511 2022-03-24 13:51:45 PDT

WebKitGTK 2.36.0 plus glib2 2.72.0 is unable to fetch file:// URIs (see example in link above). Downgrading to glib2 2.70.4 fixes the issue. I really don't know anything about WebKitGTK so I don't have much more context to offer, but I'm happy to run examples/tests. Maybe this is an upstream bug for glib2 instead?
Comment 1 Michael Catanzaro 2022-05-06 12:24:09 PDT
In bug #230797, Pierre discovered the problem is caused by GLib updating xdg-mime.

There is a GLib bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2639
Comment 2 Michael Catanzaro 2022-06-01 08:27:18 PDT
(In reply to Michael Catanzaro from comment #1) 
> There is a GLib bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2639

Moved here. Should be fixed in GLib master.
Comment 3 Michael Catanzaro 2022-06-01 08:28:04 PDT
Although nobody tested the GLib fix. tummychow, if you have time and ability to compile glib, would be helpful if you could check that.
Comment 4 Pierre Labastie 2022-06-01 09:11:19 PDT
I can confirm that glib commit 05755f2fb fixes the issue for me.
Comment 5 tummychow511 2022-06-01 11:25:16 PDT
Can confirm the upstream fix also works for me.