Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a4e704f79fccaab616b4aadd590d3360bcae4b70
      
https://github.com/WebKit/WebKit/commit/a4e704f79fccaab616b4aadd590d3360bcae4b70
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-11 (Sun, 11 Oct 2026)

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/frame-document-updated-frame-target-expected.txt
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/frame-document-updated-frame-target.html
    A 
LayoutTests/http/tests/site-isolation/inspector/dom/resources/slow-parse-frame.html
    M Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp
    M Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js

  Log Message:
  -----------
  [Site Isolation] Web Inspector: Elements shows an empty DOM for a 
cross-origin iframe after reload or dynamic insertion
https://bugs.webkit.org/show_bug.cgi?id=326171
rdar://187407211

Reviewed by BJ Burg.

Each frame-target navigation sent DOM.documentUpdated twice, first for the null 
document that
FrameLoader::clear() sets. The frontend then spliced whichever DOM.getDocument 
reply arrived first,
often the stale one, so Elements showed a partial tree.

FrameDOMAgent still unbinds the old document when the null one arrives, but 
reports only the new one.
DOMManager drops superseded getDocument replies.

Tests: 
http/tests/site-isolation/inspector/dom/frame-document-updated-frame-target.html

* 
LayoutTests/http/tests/site-isolation/inspector/dom/frame-document-updated-frame-target-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/dom/frame-document-updated-frame-target.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/dom/resources/slow-parse-frame.html:
 Added.
* Source/WebCore/inspector/agents/frame/FrameDOMAgent.cpp:
(WebCore::FrameDOMAgent::setDocument):
* Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:
(WI.DOMManager.prototype._initializeFrameTarget):

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



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

Reply via email to