Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e1aba52cfc1434f637d01551d4eebca59002d39c
      
https://github.com/WebKit/WebKit/commit/e1aba52cfc1434f637d01551d4eebca59002d39c
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-11-22 (Sat, 22 Nov 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-callback-order-between-document-with-and-without-browsing-context-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-callback-order-between-document-with-and-without-browsing-context.html
    M Source/WebCore/dom/Document.cpp

  Log Message:
  -----------
  Template document should share its event loop with the context document
https://bugs.webkit.org/show_bug.cgi?id=302951

Reviewed by Sam Weinig.

Fixed the bug that template document had its own WindowEventLoop instead of 
sharing it with the context document.
Use given document's context document's security origin to obtain 
WindowEventLoop.

Test: 
imported/w3c/web-platform-tests/dom/nodes/MutationObserver-callback-order-between-document-with-and-without-browsing-context.html

* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-callback-order-between-document-with-and-without-browsing-context-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-callback-order-between-document-with-and-without-browsing-context.html:
 Added.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::windowEventLoop): Fixed the bug.

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



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

Reply via email to