mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
LibWeb: Implement Document/BrowsingContext hookup according to spec
We now implement the browsing context's "set active document" algorithm from the spec, as well as the "discard" algorithm for browsing contexts and documents.
This commit is contained in:
parent
ab8432783e
commit
92deba7197
Notes:
sideshowbarker
2024-07-17 06:51:48 +09:00
Author: https://github.com/awesomekling
Commit: 92deba7197
9 changed files with 189 additions and 70 deletions
|
@ -235,7 +235,7 @@ void HTMLObjectElement::run_object_representation_handler_steps(Optional<String>
|
|||
else if (resource_type.has_value() && resource_type->starts_with("image/"sv)) {
|
||||
// If the object 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->discard();
|
||||
m_nested_browsing_context = nullptr;
|
||||
}
|
||||
|
||||
|
@ -276,7 +276,7 @@ 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->discard();
|
||||
m_nested_browsing_context = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue