Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 29daa35f0a26eec9333a8bc1089974bc64a5858e
      
https://github.com/WebKit/WebKit/commit/29daa35f0a26eec9333a8bc1089974bc64a5858e
  Author: Roberto Rodriguez <[email protected]>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M Source/WebCore/bindings/js/JSDOMWindowCustom.cpp

  Log Message:
  -----------
  [Site Isolation] Fix cross-origin window enumeration missing child frame 
indices
https://bugs.webkit.org/show_bug.cgi?id=307524
rdar://170123897

Reviewed by Sihui Liu.

Object.getOwnPropertyNames() on a cross-origin window should return the child 
frame indices
(e.g., '0', '1', '2') . With site isolation enabled, the cross-origin
window is a RemoteDOMWindow, but addScopedChildrenIndexes() only handled 
LocalDOMWindow,
causing it to return early without adding the indices.

Update addScopedChildrenIndexes() to use documentIfLocal() to distinguish 
between
LocalDOMWindow and RemoteDOMWindow, using childCount() for the latter since 
scoped child
enumeration isn't yet supported by RemoteFrame. This follows the same pattern 
already used
in getOwnPropertySlotByIndex().

* Source/WebCore/bindings/js/JSDOMWindowCustom.cpp:
(WebCore::addScopedChildrenIndexes):

Canonical link: https://commits.webkit.org/307319@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to