mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
LibWeb: Move ExceptionOr from DOM/ to WebIDL/
This is a concept fully defined in the Web IDL spec and doesn't belong in the DOM directory/namespace - not even DOMException, despite the name :^)
This commit is contained in:
parent
c0eda77928
commit
ad04d7ac9b
107 changed files with 441 additions and 440 deletions
|
@ -43,7 +43,7 @@ void WorkerGlobalScope::visit_edges(Cell::Visitor& visitor)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/workers.html#importing-scripts-and-libraries
|
||||
DOM::ExceptionOr<void> WorkerGlobalScope::import_scripts(Vector<String> urls)
|
||||
WebIDL::ExceptionOr<void> WorkerGlobalScope::import_scripts(Vector<String> urls)
|
||||
{
|
||||
// The algorithm may optionally be customized by supplying custom perform the fetch hooks,
|
||||
// which if provided will be used when invoking fetch a classic worker-imported script.
|
||||
|
@ -121,7 +121,7 @@ bool WorkerGlobalScope::cross_origin_isolated() const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
|
||||
DOM::ExceptionOr<String> WorkerGlobalScope::btoa(String const& data) const
|
||||
WebIDL::ExceptionOr<String> WorkerGlobalScope::btoa(String const& data) const
|
||||
{
|
||||
// FIXME: This is the same as the implementation in Bindings/WindowObject.cpp
|
||||
// Find a way to share this implementation, since they come from the same mixin.
|
||||
|
@ -141,7 +141,7 @@ DOM::ExceptionOr<String> WorkerGlobalScope::btoa(String const& data) const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob
|
||||
DOM::ExceptionOr<String> WorkerGlobalScope::atob(String const& data) const
|
||||
WebIDL::ExceptionOr<String> WorkerGlobalScope::atob(String const& data) const
|
||||
{
|
||||
// FIXME: This is the same as the implementation in Bindings/WindowObject.cpp
|
||||
// Find a way to share this implementation, since they come from the same mixin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue