mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Ladybird: Hook up the dump-cookies debug request to the cookie jar
This commit is contained in:
parent
0f1644f62d
commit
e04db5efed
Notes:
sideshowbarker
2024-07-17 03:25:24 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e04db5efed Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
1 changed files with 8 additions and 0 deletions
|
@ -324,6 +324,11 @@ public:
|
|||
m_cookie_jar.set_cookie(url, cookie, source);
|
||||
}
|
||||
|
||||
void dump_cookies() const
|
||||
{
|
||||
m_cookie_jar.dump_cookies();
|
||||
}
|
||||
|
||||
void request_file(NonnullRefPtr<Web::FileRequest>& request) override
|
||||
{
|
||||
auto const file = Core::System::open(request->path(), O_RDONLY);
|
||||
|
@ -923,6 +928,9 @@ void WebView::debug_request(String const& request, String const& argument)
|
|||
if (auto* doc = page.top_level_browsing_context().active_document())
|
||||
doc->window().local_storage()->dump();
|
||||
}
|
||||
|
||||
if (request == "dump-cookies"sv)
|
||||
m_page_client->dump_cookies();
|
||||
}
|
||||
|
||||
String WebView::source() const
|
||||
|
|
Loading…
Reference in a new issue