1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:38:10 +00:00

LibWeb: Port AbstractBrowsingContext to String

This commit is contained in:
Kenneth Myhra 2023-03-19 13:11:56 +01:00 committed by Andreas Kling
parent 03d6cb88ff
commit 1080281e58
4 changed files with 7 additions and 7 deletions

View file

@ -788,7 +788,7 @@ String Window::name() const
return String {};
// 2. Return this's navigable's target name.
return String::from_deprecated_string(browsing_context()->name()).release_value_but_fixme_should_propagate_errors();
return browsing_context()->name();
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#apis-for-creating-and-navigating-browsing-contexts-by-name:dom-name
@ -799,7 +799,7 @@ void Window::set_name(String const& name)
return;
// 2. Set this's navigable's active session history entry's document state's navigable target name to the given value.
browsing_context()->set_name(name.to_deprecated_string());
browsing_context()->set_name(name);
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-location