mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Fix various typos
Corresponds to: - https://github.com/whatwg/html/pull/10934 - https://github.com/whatwg/html/pull/10950
This commit is contained in:
parent
c5d793c4a9
commit
3775f3399c
Notes:
github-actions[bot]
2025-01-30 15:01:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3775f3399c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3404
13 changed files with 25 additions and 26 deletions
|
@ -958,13 +958,13 @@ TraversableNavigable::CheckIfUnloadingIsCanceledResult TraversableNavigable::che
|
|||
}
|
||||
}
|
||||
|
||||
// 5. Let totalTasks be the size of documentsThatNeedBeforeunload.
|
||||
// 5. Let totalTasks be the size of documentsToFireBeforeunload.
|
||||
IGNORE_USE_IN_ESCAPING_LAMBDA auto total_tasks = documents_to_fire_beforeunload.size();
|
||||
|
||||
// 6. Let completedTasks be 0.
|
||||
IGNORE_USE_IN_ESCAPING_LAMBDA size_t completed_tasks = 0;
|
||||
|
||||
// 7. For each document of documents, queue a global task on the navigation and traversal task source given document's relevant global object to run the steps:
|
||||
// 7. For each document of documentsToFireBeforeunload, queue a global task on the navigation and traversal task source given document's relevant global object to run the steps:
|
||||
for (auto& document : documents_to_fire_beforeunload) {
|
||||
queue_global_task(Task::Source::NavigationAndTraversal, relevant_global_object(*document), GC::create_function(heap(), [document, &final_status, &completed_tasks, &unload_prompt_shown] {
|
||||
// 1. Let (unloadPromptShownForThisDocument, unloadPromptCanceledByThisDocument) be the result of running the steps to fire beforeunload given document and unloadPromptShown.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue