mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Implement 'Is non-secure context' AO
This commit is contained in:
parent
4baf0a4486
commit
8db64a8704
Notes:
sideshowbarker
2024-07-17 05:00:10 +09:00
Author: https://github.com/linusg
Commit: 8db64a8704
Pull-request: https://github.com/SerenityOS/serenity/pull/15795
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/davidot ✅
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue