LibWeb: Update spec comments for dialog, popover and close watcher

This commit is contained in:
Luke Warlow 2025-01-24 12:44:17 +00:00 committed by Tim Ledbetter
commit 391a08bf17
Notes: github-actions[bot] 2025-01-25 03:41:07 +00:00
6 changed files with 165 additions and 114 deletions

View file

@ -75,11 +75,11 @@ bool CloseWatcherManager::process_close_watchers()
}
// 2.2 For each closeWatcher of group, in reverse order:
for (auto it = group_copy.rbegin(); it != group_copy.rend(); ++it) {
// 2.1.1 Set processedACloseWatcher to true.
// FIXME: 2.2.1 If the result of running closeWatcher's get enabled state is true, set processedACloseWatcher to true.
processed_a_close_watcher = true;
// 2.1.2 Let shouldProceed be the result of requesting to close closeWatcher.
// 2.2.2 Let shouldProceed be the result of requesting to close closeWatcher with true.
bool should_proceed = (*it)->request_close();
// 2.1.3 If shouldProceed is false, then break;
// 2.2.3 If shouldProceed is false, then break;
if (!should_proceed)
break;
}