mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb/HTML: Assert that a finished promise has a committed-to-entry
Corresponds to 12c6ce02d8
This commit is contained in:
parent
4c54fa10ed
commit
d970748eed
Notes:
github-actions[bot]
2025-03-04 16:46:08 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/d970748eed3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3779 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 2 additions and 5 deletions
|
@ -854,11 +854,8 @@ void Navigation::resolve_the_finished_promise(GC::Ref<NavigationAPIMethodTracker
|
|||
{
|
||||
auto& realm = this->realm();
|
||||
|
||||
// 1. Resolve apiMethodTracker's committed promise with its committed-to entry.
|
||||
// NOTE: Usually, notify about the committed-to entry has previously been called on apiMethodTracker,
|
||||
// and so this will do nothing. However, in some cases resolve the finished promise is called
|
||||
// directly, in which case this step is necessary.
|
||||
WebIDL::resolve_promise(realm, api_method_tracker->committed_promise, api_method_tracker->commited_to_entry);
|
||||
// 1. Assert: apiMethodTracker's committed-to entry is not null.
|
||||
VERIFY(api_method_tracker->commited_to_entry != nullptr);
|
||||
|
||||
// 2. Resolve apiMethodTracker's finished promise with its committed-to entry.
|
||||
WebIDL::resolve_promise(realm, api_method_tracker->finished_promise, api_method_tracker->commited_to_entry);
|
||||
|
|
Loading…
Add table
Reference in a new issue