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:
Jelle Raaijmakers 2025-02-03 14:42:44 +01:00 committed by Andreas Kling
commit 314f4ff0da
Notes: github-actions[bot] 2025-02-03 17:35:18 +00:00

View file

@ -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 {};
}