1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 15:27:42 +00:00

LibWeb: Correct spelling of UserNavigationTiming enum

With luck we can Naviagate these typo-filled waters.
This commit is contained in:
Andrew Kaster 2023-09-20 22:21:20 -06:00 committed by Andrew Kaster
parent cfba182b61
commit 25ffe6becb
2 changed files with 4 additions and 4 deletions

View file

@ -858,7 +858,7 @@ WebIDL::ExceptionOr<void> Navigable::navigate(
Optional<SerializationRecord> navigation_api_state, Optional<SerializationRecord> navigation_api_state,
Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list, Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list,
ReferrerPolicy::ReferrerPolicy referrer_policy, ReferrerPolicy::ReferrerPolicy referrer_policy,
UserNaviagationInvolvement user_involvement) UserNavigationInvolvement user_involvement)
{ {
auto& active_document = *this->active_document(); auto& active_document = *this->active_document();
auto& realm = active_document.realm(); auto& realm = active_document.realm();
@ -978,7 +978,7 @@ WebIDL::ExceptionOr<void> Navigable::navigate(
// - navigable's active document's is initial about:blank is false; and // - navigable's active document's is initial about:blank is false; and
// - url's scheme is a fetch scheme // - url's scheme is a fetch scheme
// then: // then:
if (user_involvement != UserNaviagationInvolvement::BrowserUI && active_document.origin().is_same_origin_domain(source_document->origin()) && !active_document.is_initial_about_blank() && Fetch::Infrastructure::is_fetch_scheme(url.scheme())) { if (user_involvement != UserNavigationInvolvement::BrowserUI && active_document.origin().is_same_origin_domain(source_document->origin()) && !active_document.is_initial_about_blank() && Fetch::Infrastructure::is_fetch_scheme(url.scheme())) {
// 1. Let navigation be navigable's active window's navigation API. // 1. Let navigation be navigable's active window's navigation API.
auto navigation = active_window()->navigation(); auto navigation = active_window()->navigation();

View file

@ -31,7 +31,7 @@ enum class CSPNavigationType {
}; };
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement // https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement
enum class UserNaviagationInvolvement { enum class UserNavigationInvolvement {
BrowserUI, BrowserUI,
Activation, Activation,
None, None,
@ -123,7 +123,7 @@ public:
Optional<SerializationRecord> navigation_api_state = {}, Optional<SerializationRecord> navigation_api_state = {},
Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list = {}, Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list = {},
ReferrerPolicy::ReferrerPolicy = ReferrerPolicy::ReferrerPolicy::EmptyString, ReferrerPolicy::ReferrerPolicy = ReferrerPolicy::ReferrerPolicy::EmptyString,
UserNaviagationInvolvement = UserNaviagationInvolvement::None); UserNavigationInvolvement = UserNavigationInvolvement::None);
WebIDL::ExceptionOr<void> navigate_to_a_fragment(AK::URL const&, HistoryHandlingBehavior, String navigation_id); WebIDL::ExceptionOr<void> navigate_to_a_fragment(AK::URL const&, HistoryHandlingBehavior, String navigation_id);