[webkit-dev] Glib download API change request

Michael Catanzaro mcatanzaro at redhat.com
Thu Mar 13 14:04:59 PDT 2025


On Tue, Feb 18 2025 at 11:00:05 AM -06:00:00, Michael Catanzaro 
<mcatanzaro at redhat.com> wrote:
> We should try to reimplement the sync APIs using the async APIs so we 
> don't have to remove them. The challenge here is we have to do that 
> *without* iterating the global RunLoop (otherwise, application 
> callbacks will be dispatched at unexpected times, and all manner of 
> bugs could occur, including memory corruption and other 
> vulnerabilities). So we need to do this using a "private" RunLoop.

Sorry, I incorrectly assumed we would need to do this in cross-platform 
code, but looks like we can do it in Linux-specific code, where we can 
use GMainContext directly and easily avoid this problem. So I don't 
think we actually have any problem here; we can keep the sync codepath 
working as a wrapper around the async codepath.




More information about the webkit-dev mailing list