mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement scoped custom element registries
This commit is contained in:
committed by
Tim Ledbetter
parent
90c39c214d
commit
ed6a5f25a0
Notes:
github-actions[bot]
2026-03-27 19:50:58 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/ed6a5f25a0a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8613 Reviewed-by: https://github.com/tcl3 ✅
@@ -43,6 +43,11 @@ struct SimilarOriginWindowAgent : public Agent {
|
||||
auto& current_element_queue() { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
auto const& current_element_queue() const { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#active-custom-element-constructor-map
|
||||
// Each similar-origin window agent has an associated active custom element constructor map, which is a map of
|
||||
// constructors to CustomElementRegistry objects.
|
||||
HashMap<GC::Ref<JS::FunctionObject>, GC::Root<CustomElementRegistry>> active_custom_element_constructor_map;
|
||||
|
||||
private:
|
||||
SimilarOriginWindowAgent(GC::Heap&, CanBlock);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user