Files
ladybird/Userland/Libraries/LibWeb/HTML
Aliaksandr Kalenik 988c8451d4 LibWeb: Skip HTMLLinkElement resource fetching for documents without BC
Fixes crashing after following steps:
1. Open https://github.com/SerenityOS/serenity
2. Click on "Pull requests" tab

The problem was `navigable` null pointer dereferencing in
`decode_favicon()`. But navigable is null because the document was
created by `parseFromString()` DOMParser API.

With this change we skip fetching initiated by HTMLLinkElement if
document does not have a browsing context:
- Favicon is not displayed for such documents so no need to fetch.
- Stylesheets fetching won't affect such document because style or
  layout does not run for them.
2024-04-25 09:31:01 +02:00
..
2024-04-24 16:50:01 -04:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2024-04-11 21:25:06 +02:00
2024-01-19 11:47:59 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2024-04-15 10:11:54 +02:00
2023-11-11 08:51:51 +01:00