LibWeb: Implement CookieStore::get(name)

This commit is contained in:
Idan Horowitz 2025-08-05 23:05:45 +03:00 committed by Tim Flynn
commit 5545d38d7a
Notes: github-actions[bot] 2025-08-08 17:12:25 +00:00
14 changed files with 174 additions and 17 deletions

View file

@ -1130,7 +1130,7 @@ GC::Ref<CookieStore::CookieStore> Window::cookie_store()
// The cookieStore getter steps are to return thiss associated CookieStore.
if (!m_cookie_store)
m_cookie_store = realm.create<CookieStore::CookieStore>(realm);
m_cookie_store = realm.create<CookieStore::CookieStore>(realm, page().client());
return *m_cookie_store;
}