Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 693236e1d56954cd5db61fc647e8ef4e75f7771a
https://github.com/WebKit/WebKit/commit/693236e1d56954cd5db61fc647e8ef4e75f7771a
Author: Lily Spiniolas <[email protected]>
Date: 2026-05-13 (Wed, 13 May 2026)
Changed paths:
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Document.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/page/LocalDOMWindow.cpp
M Source/WebCore/page/LocalFrame.cpp
M Source/WebCore/rendering/RenderBlock.cpp
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/style/StyleAdjuster.cpp
M Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Tools/TestRunnerShared/TestFeatures.cpp
Log Message:
-----------
Touch event region enablement should match Site Isolation enablement
https://bugs.webkit.org/show_bug.cgi?id=314293
rdar://176436500
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
For now, touch event regions inside `EventRegion` should only be
generated if site isolation is on, or if a new internal setting
"Always use touch event regions" is on.
Enable the feature when running tests inside
`fast/touch/ios/touch-event-regions-layer-tree/`.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::didAddTouchEventHandler):
(WebCore::Document::didRemoveTouchEventHandler):
(WebCore::Document::hasTouchEventHandlers const):
(WebCore::Document::shouldUseTouchEventRegions const):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/Node.cpp:
(WebCore::tryAddEventListener):
(WebCore::didRemoveEventListenersOfType):
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::addEventListener):
(WebCore::LocalDOMWindow::removeEventListener):
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::invalidateContentEventRegionsIfNeeded):
* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::paintObject):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::maintainsEventRegion const):
* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjustEventListenerRegionTypesForRootStyle):
(WebCore::Style::Adjuster::computeEventListenerRegionTypes):
* Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
(WebKit::RemoteLayerTreeDrawingAreaProxy::eventTrackingTypeForPoint):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::updateTouchEventTracking):
* Tools/TestRunnerShared/TestFeatures.cpp:
(WTR::shouldEnableTouchEventRegions):
(WTR::hardcodedFeaturesBasedOnPathForTest):
Canonical link: https://commits.webkit.org/313162@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications