mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
LibWeb: Resolve two document-tree child browsing context count FIXMEs
This patch makes use of helpers implemented for window.length to resolve two FIXMEs in WindowProxy previously simply assuming no child browsing contexts :^)
This commit is contained in:
parent
e377e28fd2
commit
75ac47dbd8
Notes:
sideshowbarker
2024-07-17 07:18:52 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/75ac47dbd8 Pull-request: https://github.com/SerenityOS/serenity/pull/15103 Reviewed-by: https://github.com/linusg ✅
1 changed files with 4 additions and 4 deletions
|
@ -72,8 +72,8 @@ JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> WindowProxy::internal_ge
|
|||
// 1. Let index be ! ToUint32(P).
|
||||
auto index = property_key.as_number();
|
||||
|
||||
// FIXME: 2. Let maxProperties be the number of document-tree child browsing contexts of W.
|
||||
size_t max_properties = 0;
|
||||
// 2. Let maxProperties be the number of document-tree child browsing contexts of W.
|
||||
auto max_properties = TRY(m_window->document_tree_child_browsing_context_count());
|
||||
|
||||
// 3. Let value be undefined.
|
||||
Optional<JS::Value> value;
|
||||
|
@ -227,8 +227,8 @@ JS::ThrowCompletionOr<JS::MarkedVector<JS::Value>> WindowProxy::internal_own_pro
|
|||
// 2. Let keys be a new empty List.
|
||||
auto keys = JS::MarkedVector<JS::Value> { vm.heap() };
|
||||
|
||||
// FIXME: 3. Let maxProperties be the number of document-tree child browsing contexts of W.
|
||||
size_t max_properties = 0;
|
||||
// 3. Let maxProperties be the number of document-tree child browsing contexts of W.
|
||||
auto max_properties = TRY(m_window->document_tree_child_browsing_context_count());
|
||||
|
||||
// 4. Let index be 0.
|
||||
// 5. Repeat while index < maxProperties,
|
||||
|
|
Loading…
Reference in a new issue