AK+LibWeb: Move generation of random UUIDs into AK

This will let us use this more outside of LibWeb more easily.

Stop handling tiny OOM while we are here.
This commit is contained in:
Timothy Flynn
2026-03-24 08:33:21 -04:00
committed by Tim Flynn
parent 16dffe39a0
commit 58791db818
Notes: github-actions[bot] 2026-03-24 16:07:31 +00:00
14 changed files with 74 additions and 75 deletions

View File

@@ -1685,7 +1685,7 @@ void Navigable::begin_navigation(NavigateParams params)
// NOTE: This step is handled in Navigable::navigate()
// 7. Let navigationId be the result of generating a random UUID.
String navigation_id = MUST(Crypto::generate_random_uuid());
auto navigation_id = Crypto::generate_random_uuid();
// FIXME: 8. If the surrounding agent is equal to navigable's active document's relevant agent, then continue these steps.
// Otherwise, queue a global task on the navigation and traversal task source given navigable's active window to continue these steps.