[webkit-changes] [WebKit/WebKit] 88b128: Add a runtime flag for mutation events

Ryosuke Niwa noreply at github.com
Thu Jan 16 00:21:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 88b128b0813256ca283a50e2b8718030fa456a2e
      https://github.com/WebKit/WebKit/commit/88b128b0813256ca283a50e2b8718030fa456a2e
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2025-01-16 (Thu, 16 Jan 2025)

  Changed paths:
    A LayoutTests/fast/dom/mutation-events-disablement-expected.txt
    A LayoutTests/fast/dom/mutation-events-disablement.html
    A LayoutTests/fast/dom/mutation-events-enablement-expected.txt
    A LayoutTests/fast/dom/mutation-events-enablement.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/dom/CharacterData.cpp
    M Source/WebCore/dom/ContainerNode.cpp
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/ShouldNotFireMutationEventsScope.h

  Log Message:
  -----------
  Add a runtime flag for mutation events
https://bugs.webkit.org/show_bug.cgi?id=286050

Reviewed by Anne van Kesteren.

Added a runtime flag for DOM mutation events so that they can be disabled at runtime.

* LayoutTests/fast/dom/mutation-events-disablement-expected.txt: Added.
* LayoutTests/fast/dom/mutation-events-disablement.html: Added.
* LayoutTests/fast/dom/mutation-events-enablement-expected.txt: Added.
* LayoutTests/fast/dom/mutation-events-enablement.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/CharacterData.cpp:
(WebCore::CharacterData::dispatchModifiedEvent):
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::dispatchChildInsertionEvents):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::Document):
* Source/WebCore/dom/ShouldNotFireMutationEventsScope.h:
(WebCore::ShouldNotFireMutationEventsScope::ShouldNotFireMutationEventsScope):
(WebCore::ShouldNotFireMutationEventsScope::~ShouldNotFireMutationEventsScope):

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



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


More information about the webkit-changes mailing list