mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibWeb: Discard an object's nested browsing contexts when falling back
This commit is contained in:
parent
23915d0977
commit
d744f04a03
Notes:
sideshowbarker
2024-07-17 16:50:02 +09:00
Author: https://github.com/trflynn89
Commit: d744f04a03
Pull-request: https://github.com/SerenityOS/serenity/pull/13236
1 changed files with 5 additions and 0 deletions
|
@ -250,6 +250,11 @@ void HTMLObjectElement::run_object_representation_completed_steps(Representation
|
|||
void HTMLObjectElement::run_object_representation_fallback_steps()
|
||||
{
|
||||
// 6. Fallback: The object element represents the element's children, ignoring any leading param element children. This is the element's fallback content. If the element has an instantiated plugin, then unload it. If the element's nested browsing context is non-null, then it must be discarded and then set to null.
|
||||
if (m_nested_browsing_context) {
|
||||
discard_nested_browsing_context();
|
||||
m_nested_browsing_context = nullptr;
|
||||
}
|
||||
|
||||
update_layout_and_child_objects(Representation::Children);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue