diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index ac39ef1b7f..19f1f0b369 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -274,6 +274,11 @@ void FrameLoader::resource_did_load() return; } + // FIXME: Support multiple instances of the Set-Cookie response header. + auto set_cookie = resource()->response_headers().get("Set-Cookie"); + if (set_cookie.has_value()) + document->set_cookie(set_cookie.value()); + if (!url.fragment().is_empty()) frame().scroll_to_anchor(url.fragment()); |