mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Prevent double page title update in DOM::Document
This ad-hoc code informs the client of a potentially changed page title. But because we always update the title element (either the SVG or HTML title) the client was already informed, causing the code to run twice.
This commit is contained in:
parent
cfe6702767
commit
314f4ff0da
|
|
@ -1029,9 +1029,6 @@ WebIDL::ExceptionOr<void> Document::set_title(String const& title)
|
|||
return {};
|
||||
}
|
||||
|
||||
if (browsing_context() == &page().top_level_browsing_context())
|
||||
page().client().page_did_change_title(title.to_byte_string());
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user