1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:05:07 +00:00
serenity/Userland/Libraries/LibWeb/Loader
Idan Horowitz 497dd5b354 LibWeb: Set response header cookies on redirects
Since we were previously relying on Document::set_cookie in order to
set cookies received as a 'Set-Cookie' response header, we would ignore
any response header cookies in redirect (status code 3xx) responses.

While this behaviour is not strictly enforced in the specification,
most major browsers do set cookies in redirect responses, and some
sites (e.g. Cookie Clicker) rely on this behaviour.

Since cookies are stored per-site and not per-document, this behaviour
is achieved by simply decoupling the cookie set mechanism from it.
2022-02-12 16:15:56 +00:00
..
ContentFilter.cpp Userland: Fix unnecessary heap allocation of singleton objects 2022-01-28 23:31:00 +01:00
ContentFilter.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
FrameLoader.cpp LibWeb: Set response header cookies on redirects 2022-02-12 16:15:56 +00:00
FrameLoader.h LibWeb: Set response header cookies on redirects 2022-02-12 16:15:56 +00:00
ImageLoader.cpp LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
ImageLoader.h LibWeb: Add the Web::URL namespace and move URLEncoder to it 2021-09-13 01:43:10 +02:00
ImageResource.cpp LibWeb: Move ImageDecoder client connection singleton to its own file 2021-11-20 10:56:31 +01: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 Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +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: Make debug logging of resource load errors red instead of green 2022-02-04 00:16:25 +01:00
ResourceLoader.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30