1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

LibWeb: Provide some properties to inspectors of ResourceLoader

This commit is contained in:
AnotherTest 2020-05-26 15:44:57 +04:30 committed by Andreas Kling
parent d582c03233
commit 790915da54
2 changed files with 10 additions and 0 deletions

View file

@ -25,6 +25,7 @@
*/
#include <AK/Base64.h>
#include <AK/JsonObject.h>
#include <AK/SharedBuffer.h>
#include <LibCore/EventLoop.h>
#include <LibCore/File.h>
@ -157,4 +158,11 @@ bool ResourceLoader::is_port_blocked(int port)
return false;
}
void ResourceLoader::save_to(JsonObject& object)
{
Object::save_to(object);
object.set("pending_loads", m_pending_loads);
object.set("user_agent", m_user_agent);
}
}