1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-18 10:51:04 +00:00
serenity/Userland/Libraries/LibWeb/Loader
Andreas Kling d03680a9e7 LibWeb: Always defer callbacks in ResourceClient::set_resource()
Previously, we'd invoke the load/fail callbacks synchronously for
resources that were already loaded and cached.

This patch uses deferred_invoke() in the already-loaded case to ensure
that we always invoke these callbacks in a consistent manner.

This isn't to fix a specific issue, but rather because I kept seeing
these callbacks being invoked synchronously on top of an already-tall
call stack, and it was hard to reason about what was going on.
2022-03-20 19:03:43 +01:00
..
ContentFilter.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
ContentFilter.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
FrameLoader.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
FrameLoader.h LibWeb: Set response header cookies on redirects 2022-02-12 16:15:56 +00:00
ImageLoader.cpp LibWeb: Follow HTTP 3xx redirections when loading images 2022-02-16 22:21:45 +01:00
ImageLoader.h LibWeb: Follow HTTP 3xx redirections when loading images 2022-02-16 22:21:45 +01:00
ImageResource.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
ImageResource.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LoadRequest.cpp Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
LoadRequest.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
Resource.cpp LibWeb: Always defer callbacks in ResourceClient::set_resource() 2022-03-20 19:03:43 +01:00
Resource.h LibWeb: Ignore Location headers unless the response status code is 3xx 2022-02-12 16:15:56 +00:00
ResourceLoader.cpp LibWeb: Fail resource loads on HTTP 4xx or 5xx error 2022-03-09 16:43:00 +01:00
ResourceLoader.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30