mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Correctly handle unknown MIME types in HTMLObjectElement
We were using the literal string "unknown" as the unknown MIME type, which caused us to treat the object as a nested browsing context (as "unknown" does not start with "image/"). Use an Optional instead to prevent this mishap.
This commit is contained in:
committed by
Andreas Kling
parent
c0513999d6
commit
f11d6e137c
@@ -49,7 +49,7 @@ private:
|
||||
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
|
||||
void queue_element_task_to_run_object_representation_steps();
|
||||
void run_object_representation_handler_steps(StringView resource_type);
|
||||
void run_object_representation_handler_steps(Optional<String> resource_type);
|
||||
void run_object_representation_completed_steps();
|
||||
void run_object_representation_fallback_steps();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user