mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00: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
Notes:
github-actions[bot]
2025-02-03 17:35:18 +00:00
Author: https://github.com/gmta
Commit: 314f4ff0da
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3437
1 changed files with 0 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue