mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibWeb: Implement 'Is origin potentially trustworthy?' AO
This commit is contained in:
parent
58ad6de954
commit
d56a6eb508
3 changed files with 81 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::SecureContexts {
|
||||
|
||||
enum class Trustworthiness {
|
||||
PotentiallyTrustworthy,
|
||||
NotTrustworthy,
|
||||
};
|
||||
|
||||
[[nodiscard]] Trustworthiness is_origin_potentially_trustworthy(HTML::Origin const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue