diff --git a/Userland/Libraries/LibWeb/HTML/Location.cpp b/Userland/Libraries/LibWeb/HTML/Location.cpp
index ad872645ae..6c6149c2b7 100644
--- a/Userland/Libraries/LibWeb/HTML/Location.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Location.cpp
@@ -81,7 +81,7 @@ WebIDL::ExceptionOr Location::href() const
}
// https://html.spec.whatwg.org/multipage/history.html#the-location-interface:dom-location-href-2
-JS::ThrowCompletionOr Location::set_href(String const& new_href)
+WebIDL::ExceptionOr Location::set_href(String const& new_href)
{
auto& vm = this->vm();
auto& window = verify_cast(HTML::current_global_object());
@@ -121,7 +121,7 @@ WebIDL::ExceptionOr Location::protocol() const
return TRY_OR_THROW_OOM(vm, String::formatted("{}:", url().scheme()));
}
-JS::ThrowCompletionOr Location::set_protocol(String const&)
+WebIDL::ExceptionOr Location::set_protocol(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.protocol setter");
@@ -149,7 +149,7 @@ WebIDL::ExceptionOr Location::host() const
return TRY_OR_THROW_OOM(vm, String::formatted("{}:{}", url.host(), *url.port()));
}
-JS::ThrowCompletionOr Location::set_host(String const&)
+WebIDL::ExceptionOr Location::set_host(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.host setter");
@@ -172,7 +172,7 @@ WebIDL::ExceptionOr Location::hostname() const
return TRY_OR_THROW_OOM(vm, String::from_deprecated_string(url.host()));
}
-JS::ThrowCompletionOr Location::set_hostname(String const&)
+WebIDL::ExceptionOr Location::set_hostname(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.hostname setter");
@@ -195,7 +195,7 @@ WebIDL::ExceptionOr Location::port() const
return TRY_OR_THROW_OOM(vm, String::number(*url.port()));
}
-JS::ThrowCompletionOr Location::set_port(String const&)
+WebIDL::ExceptionOr Location::set_port(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.port setter");
@@ -212,7 +212,7 @@ WebIDL::ExceptionOr Location::pathname() const
return TRY_OR_THROW_OOM(vm, String::from_deprecated_string(url().path()));
}
-JS::ThrowCompletionOr Location::set_pathname(String const&)
+WebIDL::ExceptionOr Location::set_pathname(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.pathname setter");
@@ -235,7 +235,7 @@ WebIDL::ExceptionOr Location::search() const
return TRY_OR_THROW_OOM(vm, String::formatted("?{}", url.query()));
}
-JS::ThrowCompletionOr Location::set_search(String const&)
+WebIDL::ExceptionOr Location::set_search(String const&)
{
auto& vm = this->vm();
return vm.throw_completion(JS::ErrorType::NotImplemented, "Location.search setter");
@@ -259,7 +259,7 @@ WebIDL::ExceptionOr Location::hash() const
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-location-hash
-JS::ThrowCompletionOr Location::set_hash(String const& value)
+WebIDL::ExceptionOr Location::set_hash(String const& value)
{
// The hash setter steps are:
// 1. If this's relevant Document is null, then return.
diff --git a/Userland/Libraries/LibWeb/HTML/Location.h b/Userland/Libraries/LibWeb/HTML/Location.h
index fc3d8f13e2..9ba033f23a 100644
--- a/Userland/Libraries/LibWeb/HTML/Location.h
+++ b/Userland/Libraries/LibWeb/HTML/Location.h
@@ -23,30 +23,30 @@ public:
virtual ~Location() override;
WebIDL::ExceptionOr href() const;
- JS::ThrowCompletionOr set_href(String const&);
+ WebIDL::ExceptionOr set_href(String const&);
WebIDL::ExceptionOr origin() const;
WebIDL::ExceptionOr protocol() const;
- JS::ThrowCompletionOr set_protocol(String const&);
+ WebIDL::ExceptionOr set_protocol(String const&);
WebIDL::ExceptionOr host() const;
- JS::ThrowCompletionOr set_host(String const&);
+ WebIDL::ExceptionOr set_host(String const&);
WebIDL::ExceptionOr hostname() const;
- JS::ThrowCompletionOr set_hostname(String const&);
+ WebIDL::ExceptionOr set_hostname(String const&);
WebIDL::ExceptionOr port() const;
- JS::ThrowCompletionOr set_port(String const&);
+ WebIDL::ExceptionOr set_port(String const&);
WebIDL::ExceptionOr pathname() const;
- JS::ThrowCompletionOr set_pathname(String const&);
+ WebIDL::ExceptionOr set_pathname(String const&);
WebIDL::ExceptionOr search() const;
- JS::ThrowCompletionOr set_search(String const&);
+ WebIDL::ExceptionOr set_search(String const&);
WebIDL::ExceptionOr hash() const;
- JS::ThrowCompletionOr set_hash(String const&);
+ WebIDL::ExceptionOr set_hash(String const&);
void replace(String const& url) const;
void reload() const;