mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibWeb: Stub out 'check if access between two BCs should be reported'
I put this is a CrossOrigin/ subdirectory in anticipation of a lot more cross-origin related ground to cover. :^)
This commit is contained in:
parent
ae96eae4f9
commit
6f941433d6
3 changed files with 68 additions and 0 deletions
23
Userland/Libraries/LibWeb/HTML/CrossOrigin/Reporting.h
Normal file
23
Userland/Libraries/LibWeb/HTML/CrossOrigin/Reporting.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#accessor-accessed-relationship
|
||||
enum class AccessorAccessedRelationship {
|
||||
AccessorIsOpener,
|
||||
AccessorIsOpenee,
|
||||
None,
|
||||
};
|
||||
|
||||
void check_if_access_between_two_browsing_contexts_should_be_reported(BrowsingContext const& accessor, BrowsingContext const& accessed, JS::PropertyKey const&, EnvironmentSettingsObject const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue