mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Fire iframe load event on document close
This matches the behavior of other browsers.
This commit is contained in:
committed by
Andreas Kling
parent
00487a7b25
commit
e1eeb93cc6
Notes:
github-actions[bot]
2024-10-08 04:55:47 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e1eeb93cc60 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1673
@@ -705,6 +705,9 @@ WebIDL::ExceptionOr<void> Document::close()
|
||||
// FIXME: 6. Run the tokenizer, processing resulting tokens as they are emitted, and stopping when the tokenizer reaches the explicit "EOF" character or spins the event loop.
|
||||
m_parser->run();
|
||||
|
||||
// AD-HOC: This ensures that a load event is fired if the node navigable's container is an iframe.
|
||||
completely_finish_loading();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user