mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:27:35 +00:00
LibWeb: Correct spelling of UserNavigationTiming enum
With luck we can Naviagate these typo-filled waters.
This commit is contained in:
parent
cfba182b61
commit
25ffe6becb
2 changed files with 4 additions and 4 deletions
|
@ -858,7 +858,7 @@ WebIDL::ExceptionOr<void> Navigable::navigate(
|
|||
Optional<SerializationRecord> navigation_api_state,
|
||||
Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list,
|
||||
ReferrerPolicy::ReferrerPolicy referrer_policy,
|
||||
UserNaviagationInvolvement user_involvement)
|
||||
UserNavigationInvolvement user_involvement)
|
||||
{
|
||||
auto& active_document = *this->active_document();
|
||||
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
|
||||
// - url's scheme is a fetch scheme
|
||||
// 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.
|
||||
auto navigation = active_window()->navigation();
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ enum class CSPNavigationType {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement
|
||||
enum class UserNaviagationInvolvement {
|
||||
enum class UserNavigationInvolvement {
|
||||
BrowserUI,
|
||||
Activation,
|
||||
None,
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
Optional<SerializationRecord> navigation_api_state = {},
|
||||
Optional<Vector<XHR::FormDataEntry>&> form_data_entry_list = {},
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue