mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibWeb: Implement the CrossOriginProperties AO
This commit is contained in:
parent
8b4e5220aa
commit
78938d933a
Notes:
sideshowbarker
2024-07-17 17:51:55 +09:00
Author: https://github.com/linusg
Commit: 78938d933a
Pull-request: https://github.com/SerenityOS/serenity/pull/12919
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 59 additions and 0 deletions
|
@ -9,9 +9,16 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <AK/Traits.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
||||
struct CrossOriginProperty {
|
||||
String property;
|
||||
Optional<bool> needs_get {};
|
||||
Optional<bool> needs_set {};
|
||||
};
|
||||
|
||||
struct CrossOriginKey {
|
||||
FlatPtr current_settings_object;
|
||||
FlatPtr relevant_settings_object;
|
||||
|
@ -20,6 +27,8 @@ struct CrossOriginKey {
|
|||
|
||||
using CrossOriginPropertyDescriptorMap = HashMap<CrossOriginKey, JS::PropertyDescriptor>;
|
||||
|
||||
Vector<CrossOriginProperty> cross_origin_properties(Variant<LocationObject const*, WindowObject const*> const&);
|
||||
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue