LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
22.99k stars 1.02k forks source link

LibWeb: Replace all direct uses of ResourceLoader with Fetch #2634

Open Lubrsi opened 3 days ago

Lubrsi commented 3 days ago

We should replace all direct uses of ResourceLoader with Fetch. This is because using ResourceLoader bypasses many features that Fetch handles:

These are the usages I could find:

With these replaced, we could remove load_resource and potentially badge load and load_unbuffered to only be called from Fetch.

shlyakpavel commented 3 days ago

This one https://wpt.fyi/results/infrastructure/assumptions/blank.html Might be failing quite a few tests for us. Does HTMLLinkElement using fetch cover <link rel=match href="about:blank">?