mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Avoid introducing a reference cycle in ResourceLoader::load()
Previously we were kinda sorta resolving the reference cycle, but let's just keep the requests in a hashtable instead of relying on hard to track refcount tricks. Fixes #7314.
This commit is contained in:
parent
65f7e45a75
commit
e780ee2832
2 changed files with 7 additions and 5 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
namespace Protocol {
|
||||
class RequestClient;
|
||||
class Request;
|
||||
}
|
||||
|
||||
namespace Web {
|
||||
|
@ -53,6 +54,7 @@ private:
|
|||
|
||||
int m_pending_loads { 0 };
|
||||
|
||||
HashTable<NonnullRefPtr<Protocol::Request>> m_active_requests;
|
||||
RefPtr<Protocol::RequestClient> m_protocol_client;
|
||||
String m_user_agent;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue