Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e7614b2ab45ae73216ade1edda829ffe0fb62392
https://github.com/WebKit/WebKit/commit/e7614b2ab45ae73216ade1edda829ffe0fb62392
Author: Luke Warlow <[email protected]>
Date: 2026-06-12 (Fri, 12 Jun 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/html/HTMLDialogElement.cpp
M Source/WebCore/html/HTMLDialogElement.h
M Source/WebCore/html/HTMLDialogElement.idl
M Source/WebCore/page/EventHandler.cpp
M Source/WebCore/page/PointerCaptureController.cpp
Log Message:
-----------
Enable Close Watcher API in preview
https://bugs.webkit.org/show_bug.cgi?id=315502
Reviewed by Anne van Kesteren.
This enables the Close Watcher API flag in preview and merges the flag with
that for the closedby attribute.
Many closedby tests rely on the behaviour provided by close watchers,
so it doesn't make sense to keep them separate.
Rename the setTheCloseWatcher() to setCloseWatcher() per feedback.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::activeCloseableDialog const): Deleted.
* Source/WebCore/dom/Document.h:
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::insertionSteps):
(WebCore::HTMLDialogElement::postConnectionSteps):
(WebCore::HTMLDialogElement::removingSteps):
(WebCore::HTMLDialogElement::attributeChanged):
(WebCore::HTMLDialogElement::setupSteps):
(WebCore::HTMLDialogElement::setCloseWatcher):
(WebCore::HTMLDialogElement::setTheCloseWatcher): Deleted.
* Source/WebCore/html/HTMLDialogElement.h:
* Source/WebCore/html/HTMLDialogElement.idl:
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::defaultKeyboardEventHandler):
* Source/WebCore/page/PointerCaptureController.cpp:
(WebCore::PointerCaptureController::pointerEventWillBeDispatched):
Canonical link: https://commits.webkit.org/315081@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications