mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Allow using queuing strategies on globals other than Window
These interfaces are exposed on *, meaning it should work for workers and our newly added shadow realm global object by being stored on the universal global scope mixin.
This commit is contained in:
parent
13f349aea2
commit
d527c5df5d
Notes:
github-actions[bot]
2024-11-21 01:10:37 +00:00
Author: https://github.com/shannonbooth
Commit: d527c5df5d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2416
Reviewed-by: https://github.com/ADKaster ✅
10 changed files with 89 additions and 61 deletions
|
@ -141,9 +141,6 @@ public:
|
|||
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; }
|
||||
|
||||
GC::Ref<WebIDL::CallbackType> count_queuing_strategy_size_function();
|
||||
GC::Ref<WebIDL::CallbackType> byte_length_queuing_strategy_size_function();
|
||||
|
||||
// JS API functions
|
||||
GC::Ref<WindowProxy> window() const;
|
||||
GC::Ref<WindowProxy> self() const;
|
||||
|
@ -313,12 +310,6 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/interaction.html#last-history-action-activation-timestamp
|
||||
HighResolutionTime::DOMHighResTimeStamp m_last_history_action_activation_timestamp { AK::Infinity<double> };
|
||||
|
||||
// https://streams.spec.whatwg.org/#count-queuing-strategy-size-function
|
||||
GC::Ptr<WebIDL::CallbackType> m_count_queuing_strategy_size_function;
|
||||
|
||||
// https://streams.spec.whatwg.org/#byte-length-queuing-strategy-size-function
|
||||
GC::Ptr<WebIDL::CallbackType> m_byte_length_queuing_strategy_size_function;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-window-status
|
||||
// When the Window object is created, the attribute must be set to the empty string. It does not do anything else.
|
||||
String m_status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue