mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
LibWeb: Implement 'Is non-secure context' AO
This commit is contained in:
@@ -423,4 +423,11 @@ bool is_secure_context(Environment const& environment)
|
||||
return false;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#non-secure-context
|
||||
bool is_non_secure_context(Environment const& environment)
|
||||
{
|
||||
// An environment is a non-secure context if it is not a secure context.
|
||||
return !is_secure_context(environment);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user