mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibWeb: Move DOMException from DOM/ to WebIDL/
This commit is contained in:
parent
ad04d7ac9b
commit
bbaa05fcf9
49 changed files with 206 additions and 203 deletions
|
@ -881,7 +881,7 @@ WebIDL::ExceptionOr<void> BrowsingContext::navigate(
|
|||
// 1. If exceptionsEnabled is given and is true, then throw a "SecurityError" DOMException.
|
||||
if (exceptions_enabled) {
|
||||
VERIFY(source_browsing_context.active_document());
|
||||
return DOM::SecurityError::create(source_browsing_context.active_document()->global_object(), "Source browsing context not allowed to navigate"sv);
|
||||
return WebIDL::SecurityError::create(source_browsing_context.active_document()->global_object(), "Source browsing context not allowed to navigate"sv);
|
||||
}
|
||||
|
||||
// FIXME: 2. Otherwise, the user agent may instead offer to open resource in a new top-level browsing context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue