2020-04-01 18:53:28 +02:00
|
|
|
/*
|
2022-02-08 19:38:29 +01:00
|
|
|
* Copyright (c) 2020-2022, Andreas Kling <kling@serenityos.org>
|
2023-01-18 17:41:12 +00:00
|
|
|
* Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
|
2020-04-01 18:53:28 +02:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-04-01 18:53:28 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Badge.h>
|
2020-06-27 18:30:29 +02:00
|
|
|
#include <AK/IDAllocator.h>
|
2020-04-01 18:53:28 +02:00
|
|
|
#include <AK/RefPtr.h>
|
2022-09-07 20:30:31 +02:00
|
|
|
#include <AK/TypeCasts.h>
|
2022-08-28 13:42:07 +02:00
|
|
|
#include <AK/URL.h>
|
|
|
|
#include <LibJS/Heap/Heap.h>
|
2022-09-24 15:39:23 -06:00
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2020-10-18 13:43:44 +02:00
|
|
|
#include <LibWeb/DOM/EventTarget.h>
|
2022-08-28 13:42:07 +02:00
|
|
|
#include <LibWeb/Forward.h>
|
2022-05-05 20:08:29 +01:00
|
|
|
#include <LibWeb/HTML/AnimationFrameCallbackDriver.h>
|
2022-09-24 14:02:47 +01:00
|
|
|
#include <LibWeb/HTML/CrossOrigin/CrossOriginPropertyDescriptorMap.h>
|
2021-09-22 16:39:15 +02:00
|
|
|
#include <LibWeb/HTML/GlobalEventHandlers.h>
|
2023-02-28 00:23:53 +00:00
|
|
|
#include <LibWeb/HTML/MimeType.h>
|
|
|
|
#include <LibWeb/HTML/Plugin.h>
|
2022-10-23 04:05:46 +02:00
|
|
|
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
2022-06-27 19:48:54 +01:00
|
|
|
#include <LibWeb/HTML/WindowEventHandlers.h>
|
2023-03-05 15:52:34 +00:00
|
|
|
#include <LibWeb/Bindings/WindowGlobalMixin.h>
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2022-03-07 23:08:26 +01:00
|
|
|
namespace Web::HTML {
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2022-03-31 21:55:01 +02:00
|
|
|
class IdleCallback;
|
2021-09-13 02:03:06 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
// https://html.spec.whatwg.org/#timerhandler
|
2022-12-04 18:02:33 +00:00
|
|
|
using TimerHandler = Variant<JS::Handle<WebIDL::CallbackType>, DeprecatedString>;
|
2022-08-28 13:42:07 +02:00
|
|
|
|
2020-10-18 13:43:44 +02:00
|
|
|
class Window final
|
2022-08-28 13:42:07 +02:00
|
|
|
: public DOM::EventTarget
|
2022-06-27 19:48:54 +01:00
|
|
|
, public HTML::GlobalEventHandlers
|
2023-03-05 15:52:34 +00:00
|
|
|
, public HTML::WindowEventHandlers
|
|
|
|
, public Bindings::WindowGlobalMixin {
|
2022-08-28 13:42:07 +02:00
|
|
|
WEB_PLATFORM_OBJECT(Window, DOM::EventTarget);
|
|
|
|
|
2020-04-01 18:53:28 +02:00
|
|
|
public:
|
2023-02-15 20:04:35 +01:00
|
|
|
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Window>> create(JS::Realm&);
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
~Window();
|
2020-10-18 13:43:44 +02:00
|
|
|
|
2022-08-08 22:29:40 +02:00
|
|
|
virtual bool dispatch_event(DOM::Event&) override;
|
2020-10-18 13:43:44 +02:00
|
|
|
|
2021-09-09 13:45:03 +02:00
|
|
|
Page* page();
|
|
|
|
Page const* page() const;
|
|
|
|
|
2022-03-05 00:13:13 +01:00
|
|
|
// https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window
|
2022-03-07 23:08:26 +01:00
|
|
|
DOM::Document const& associated_document() const { return *m_associated_document; }
|
|
|
|
DOM::Document& associated_document() { return *m_associated_document; }
|
2022-08-04 21:19:30 +02:00
|
|
|
void set_associated_document(DOM::Document&);
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2022-03-05 00:13:13 +01:00
|
|
|
// https://html.spec.whatwg.org/multipage/window-object.html#window-bc
|
2022-08-28 13:42:07 +02:00
|
|
|
HTML::BrowsingContext const* browsing_context() const;
|
|
|
|
HTML::BrowsingContext* browsing_context();
|
|
|
|
|
2022-09-06 19:56:29 +02:00
|
|
|
JS::ThrowCompletionOr<size_t> document_tree_child_browsing_context_count() const;
|
|
|
|
|
2022-10-23 04:05:46 +02:00
|
|
|
ImportMap const& import_map() const { return m_import_map; }
|
|
|
|
|
|
|
|
bool import_maps_allowed() const { return m_import_maps_allowed; }
|
|
|
|
void set_import_maps_allowed(bool import_maps_allowed) { m_import_maps_allowed = import_maps_allowed; }
|
|
|
|
|
2022-11-15 02:03:48 +02:00
|
|
|
WebIDL::ExceptionOr<JS::GCPtr<HTML::WindowProxy>> open_impl(StringView url, StringView target, StringView features);
|
2022-09-24 16:02:41 +01:00
|
|
|
i32 request_animation_frame_impl(WebIDL::CallbackType& js_callback);
|
2022-08-28 13:42:07 +02:00
|
|
|
void cancel_animation_frame_impl(i32);
|
2022-05-05 20:08:29 +01:00
|
|
|
bool has_animation_frame_callbacks() const { return m_animation_frame_callback_driver.has_callbacks(); }
|
2020-06-27 18:30:29 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
i32 set_timeout_impl(TimerHandler, i32 timeout, JS::MarkedVector<JS::Value> arguments);
|
|
|
|
i32 set_interval_impl(TimerHandler, i32 timeout, JS::MarkedVector<JS::Value> arguments);
|
|
|
|
void clear_timeout_impl(i32);
|
|
|
|
void clear_interval_impl(i32);
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2022-09-24 16:02:41 +01:00
|
|
|
void queue_microtask_impl(WebIDL::CallbackType& callback);
|
2021-09-26 14:36:20 +02:00
|
|
|
|
2021-03-16 17:22:01 +01:00
|
|
|
int inner_width() const;
|
|
|
|
int inner_height() const;
|
|
|
|
|
2023-01-18 17:41:12 +00:00
|
|
|
void did_set_location_href(Badge<HTML::Location>, AK::URL const& new_href);
|
|
|
|
void did_call_location_reload(Badge<HTML::Location>);
|
|
|
|
void did_call_location_replace(Badge<HTML::Location>, DeprecatedString url);
|
2020-05-18 21:52:50 +02:00
|
|
|
|
2022-03-07 23:54:56 +01:00
|
|
|
void deallocate_timer_id(Badge<Timer>, i32);
|
2020-06-27 18:30:29 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
HighResolutionTime::Performance& performance();
|
2020-09-29 18:19:18 +02:00
|
|
|
|
2021-09-30 20:02:55 +03:00
|
|
|
Crypto::Crypto& crypto() { return *m_crypto; }
|
|
|
|
|
2022-08-31 18:52:54 +02:00
|
|
|
CSS::Screen& screen();
|
2021-04-04 00:14:39 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
DOM::Event* current_event() { return m_current_event.ptr(); }
|
|
|
|
DOM::Event const* current_event() const { return m_current_event.ptr(); }
|
2022-08-08 22:29:40 +02:00
|
|
|
void set_current_event(DOM::Event* event);
|
2020-11-21 18:32:39 +00:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
CSS::CSSStyleDeclaration* get_computed_style_impl(DOM::Element&) const;
|
2022-12-04 18:02:33 +00:00
|
|
|
JS::NonnullGCPtr<CSS::MediaQueryList> match_media_impl(DeprecatedString);
|
2022-03-08 16:51:33 +00:00
|
|
|
Optional<CSS::MediaFeatureValue> query_media_feature(CSS::MediaFeatureID) const;
|
2021-09-11 00:33:30 +02:00
|
|
|
|
2021-09-24 21:49:31 +02:00
|
|
|
float scroll_x() const;
|
|
|
|
float scroll_y() const;
|
|
|
|
|
2023-01-08 19:23:00 -05:00
|
|
|
void fire_a_page_transition_event(DeprecatedFlyString const& event_name, bool persisted);
|
2021-09-26 12:39:27 +02:00
|
|
|
|
2021-09-27 16:34:06 +02:00
|
|
|
float device_pixel_ratio() const;
|
|
|
|
|
2021-09-29 00:15:26 +02:00
|
|
|
int screen_x() const;
|
|
|
|
int screen_y() const;
|
|
|
|
|
2022-11-01 15:58:48 -04:00
|
|
|
int outer_width() const;
|
|
|
|
int outer_height() const;
|
|
|
|
|
2022-09-03 19:44:37 +02:00
|
|
|
JS::NonnullGCPtr<HTML::Storage> local_storage();
|
|
|
|
JS::NonnullGCPtr<HTML::Storage> session_storage();
|
2022-02-08 19:38:29 +01:00
|
|
|
|
2022-10-15 23:12:05 +02:00
|
|
|
// https://html.spec.whatwg.org/multipage/browsers.html#dom-parent
|
|
|
|
WindowProxy* parent();
|
2022-02-26 15:55:45 +01:00
|
|
|
|
2022-04-05 02:24:10 +02:00
|
|
|
WebIDL::ExceptionOr<JS::Value> structured_clone_impl(JS::VM& vm, JS::Value);
|
2022-02-26 17:21:40 +01:00
|
|
|
|
2022-03-31 21:55:01 +02:00
|
|
|
void start_an_idle_period();
|
|
|
|
|
2022-09-24 16:02:41 +01:00
|
|
|
u32 request_idle_callback_impl(WebIDL::CallbackType& callback);
|
2022-08-28 13:42:07 +02:00
|
|
|
void cancel_idle_callback_impl(u32);
|
2022-04-01 19:46:29 +02:00
|
|
|
|
2022-05-05 20:08:29 +01:00
|
|
|
AnimationFrameCallbackDriver& animation_frame_callback_driver() { return m_animation_frame_callback_driver; }
|
|
|
|
|
2022-09-19 17:46:34 +02:00
|
|
|
// https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
|
|
|
|
bool has_transient_activation() const;
|
|
|
|
|
2023-03-05 21:22:34 +00:00
|
|
|
WebIDL::ExceptionOr<void> initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>);
|
2022-09-24 15:39:23 -06:00
|
|
|
|
2023-02-28 00:23:53 +00:00
|
|
|
Vector<JS::NonnullGCPtr<Plugin>> pdf_viewer_plugin_objects();
|
|
|
|
Vector<JS::NonnullGCPtr<MimeType>> pdf_viewer_mime_type_objects();
|
|
|
|
|
2023-03-05 16:02:35 +00:00
|
|
|
// JS API functions
|
2023-03-05 18:36:43 +00:00
|
|
|
JS::NonnullGCPtr<WindowProxy> window() const;
|
2023-03-05 18:38:29 +00:00
|
|
|
JS::NonnullGCPtr<WindowProxy> self() const;
|
2023-03-05 18:54:33 +00:00
|
|
|
JS::NonnullGCPtr<DOM::Document const> document() const;
|
2023-03-05 19:02:16 +00:00
|
|
|
String name() const;
|
|
|
|
void set_name(String const&);
|
2023-03-05 18:36:43 +00:00
|
|
|
|
2023-03-05 18:48:45 +00:00
|
|
|
JS::NonnullGCPtr<WindowProxy> frames() const;
|
|
|
|
|
2023-03-05 17:55:03 +00:00
|
|
|
JS::NonnullGCPtr<Navigator> navigator() const;
|
|
|
|
|
2023-03-05 16:02:35 +00:00
|
|
|
void alert(String const& message = {});
|
2023-03-05 17:21:24 +00:00
|
|
|
bool confirm(Optional<String> const& message);
|
2023-03-05 17:28:17 +00:00
|
|
|
Optional<String> prompt(Optional<String> const& message, Optional<String> const& default_);
|
2023-03-05 16:02:35 +00:00
|
|
|
|
2023-03-05 17:36:59 +00:00
|
|
|
void post_message(JS::Value message, String const&);
|
|
|
|
|
2020-04-01 18:53:28 +02:00
|
|
|
private:
|
2022-08-28 13:42:07 +02:00
|
|
|
explicit Window(JS::Realm&);
|
|
|
|
|
|
|
|
virtual void visit_edges(Cell::Visitor&) override;
|
2020-04-01 18:53:28 +02:00
|
|
|
|
2021-09-22 16:39:15 +02:00
|
|
|
// ^HTML::GlobalEventHandlers
|
2023-01-08 19:23:00 -05:00
|
|
|
virtual DOM::EventTarget& global_event_handlers_to_event_target(DeprecatedFlyString const&) override { return *this; }
|
2021-09-22 16:39:15 +02:00
|
|
|
|
2022-06-27 19:48:54 +01:00
|
|
|
// ^HTML::WindowEventHandlers
|
|
|
|
virtual DOM::EventTarget& window_event_handlers_to_event_target() override { return *this; }
|
|
|
|
|
2022-03-04 10:41:12 -05:00
|
|
|
enum class Repeat {
|
|
|
|
Yes,
|
|
|
|
No,
|
|
|
|
};
|
2022-08-28 13:42:07 +02:00
|
|
|
i32 run_timer_initialization_steps(TimerHandler handler, i32 timeout, JS::MarkedVector<JS::Value> arguments, Repeat repeat, Optional<i32> previous_id = {});
|
2022-03-04 10:41:12 -05:00
|
|
|
|
2022-03-31 21:55:01 +02:00
|
|
|
void invoke_idle_callbacks();
|
|
|
|
|
2021-09-09 13:55:31 +02:00
|
|
|
// https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window
|
2022-08-28 13:42:07 +02:00
|
|
|
JS::GCPtr<DOM::Document> m_associated_document;
|
2021-09-09 13:55:31 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
JS::GCPtr<DOM::Event> m_current_event;
|
2020-06-27 18:30:29 +02:00
|
|
|
|
|
|
|
IDAllocator m_timer_id_allocator;
|
2022-09-01 12:21:47 +02:00
|
|
|
HashMap<int, JS::NonnullGCPtr<Timer>> m_timers;
|
2020-09-29 18:19:18 +02:00
|
|
|
|
2022-10-23 04:05:46 +02:00
|
|
|
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-window-import-map
|
|
|
|
ImportMap m_import_map;
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/webappapis.html#import-maps-allowed
|
|
|
|
bool m_import_maps_allowed { true };
|
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
JS::GCPtr<HighResolutionTime::Performance> m_performance;
|
2022-09-04 13:15:05 +02:00
|
|
|
JS::GCPtr<Crypto::Crypto> m_crypto;
|
2022-08-31 18:52:54 +02:00
|
|
|
JS::GCPtr<CSS::Screen> m_screen;
|
2022-10-08 20:53:08 -06:00
|
|
|
JS::GCPtr<HTML::Navigator> m_navigator;
|
2021-09-13 02:03:06 +02:00
|
|
|
|
2022-05-05 20:08:29 +01:00
|
|
|
AnimationFrameCallbackDriver m_animation_frame_callback_driver;
|
2022-03-31 21:55:01 +02:00
|
|
|
|
|
|
|
// https://w3c.github.io/requestidlecallback/#dfn-list-of-idle-request-callbacks
|
2023-03-06 14:17:01 +01:00
|
|
|
Vector<NonnullRefPtr<IdleCallback>> m_idle_request_callbacks;
|
2022-03-31 21:55:01 +02:00
|
|
|
// https://w3c.github.io/requestidlecallback/#dfn-list-of-runnable-idle-callbacks
|
2023-03-06 14:17:01 +01:00
|
|
|
Vector<NonnullRefPtr<IdleCallback>> m_runnable_idle_callbacks;
|
2022-03-31 21:55:01 +02:00
|
|
|
// https://w3c.github.io/requestidlecallback/#dfn-idle-callback-identifier
|
|
|
|
u32 m_idle_callback_identifier = 0;
|
2022-08-28 13:42:07 +02:00
|
|
|
|
2023-02-28 00:23:53 +00:00
|
|
|
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-plugin-objects
|
|
|
|
Vector<JS::NonnullGCPtr<Plugin>> m_pdf_viewer_plugin_objects;
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-mime-type-objects
|
|
|
|
Vector<JS::NonnullGCPtr<MimeType>> m_pdf_viewer_mime_type_objects;
|
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
public:
|
|
|
|
HTML::Origin origin() const;
|
|
|
|
|
2023-01-18 17:41:12 +00:00
|
|
|
HTML::Location* location() { return m_location; }
|
|
|
|
HTML::Location const* location() const { return m_location; }
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(JS::Object* prototype) override;
|
|
|
|
|
2022-09-24 14:02:47 +01:00
|
|
|
CrossOriginPropertyDescriptorMap const& cross_origin_property_descriptor_map() const { return m_cross_origin_property_descriptor_map; }
|
|
|
|
CrossOriginPropertyDescriptorMap& cross_origin_property_descriptor_map() { return m_cross_origin_property_descriptor_map; }
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
private:
|
2022-09-06 19:56:29 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(length_getter);
|
2022-08-28 13:42:07 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(top_getter);
|
|
|
|
|
2022-09-20 11:14:23 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(frame_element_getter);
|
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(location_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(location_setter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(performance_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(performance_setter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(history_getter);
|
2023-02-28 20:15:18 +00:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_getter);
|
2023-02-28 20:15:18 +00:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_setter);
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(event_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(event_setter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(inner_width_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(inner_height_getter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(parent_getter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(device_pixel_ratio_getter);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(scroll_x_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(scroll_y_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(scroll);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(scroll_by);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_x_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_y_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_left_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(screen_top_getter);
|
|
|
|
|
2022-11-01 15:58:48 -04:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(outer_width_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(outer_height_getter);
|
|
|
|
|
2022-04-05 02:24:10 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(structured_clone);
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(local_storage_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(session_storage_getter);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(origin_getter);
|
2023-01-18 20:50:03 +11:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(is_secure_context_getter);
|
2022-08-28 13:42:07 +02:00
|
|
|
|
2022-11-15 02:03:48 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(open);
|
2022-08-28 13:42:07 +02:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(set_interval);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(set_timeout);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(clear_interval);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(clear_timeout);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(request_animation_frame);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(cancel_animation_frame);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(atob);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(btoa);
|
2022-11-05 14:38:49 +00:00
|
|
|
JS_DECLARE_NATIVE_FUNCTION(focus);
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(get_computed_style);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(match_media);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(get_selection);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(queue_microtask);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(request_idle_callback);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(cancel_idle_callback);
|
|
|
|
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(crypto_getter);
|
|
|
|
|
2023-01-18 17:41:12 +00:00
|
|
|
HTML::Location* m_location { nullptr };
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
// [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap
|
2022-09-24 14:02:47 +01:00
|
|
|
CrossOriginPropertyDescriptorMap m_cross_origin_property_descriptor_map;
|
2020-04-01 18:53:28 +02:00
|
|
|
};
|
|
|
|
|
2021-10-03 16:28:14 +02:00
|
|
|
void run_animation_frame_callbacks(DOM::Document&, double now);
|
|
|
|
|
2020-04-01 18:53:28 +02:00
|
|
|
}
|