AbstractOperations.h 1.2 KB

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <AK/Variant.h>
  9. #include <LibJS/Forward.h>
  10. #include <LibWeb/Forward.h>
  11. #include <LibWeb/HTML/CrossOrigin/CrossOriginPropertyDescriptorMap.h>
  12. namespace Web::HTML {
  13. Vector<CrossOriginProperty> cross_origin_properties(Variant<HTML::Location const*, HTML::Window const*> const&);
  14. bool is_cross_origin_accessible_window_property_name(JS::PropertyKey const&);
  15. JS::ThrowCompletionOr<JS::PropertyDescriptor> cross_origin_property_fallback(JS::VM&, JS::PropertyKey const&);
  16. bool is_platform_object_same_origin(JS::Object const&);
  17. Optional<JS::PropertyDescriptor> cross_origin_get_own_property_helper(Variant<HTML::Location*, HTML::Window*> const&, JS::PropertyKey const&);
  18. JS::ThrowCompletionOr<JS::Value> cross_origin_get(JS::VM&, JS::Object const&, JS::PropertyKey const&, JS::Value receiver);
  19. JS::ThrowCompletionOr<bool> cross_origin_set(JS::VM&, JS::Object&, JS::PropertyKey const&, JS::Value, JS::Value receiver);
  20. JS::MarkedVector<JS::Value> cross_origin_own_property_keys(Variant<HTML::Location const*, HTML::Window const*> const&);
  21. }