Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a96f40ecd9f060122dfdb45fb85dde7b3e6fc8d8
      
https://github.com/WebKit/WebKit/commit/a96f40ecd9f060122dfdb45fb85dde7b3e6fc8d8
  Author: Kate Lee <[email protected]>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    M Source/WebCore/page/LocalDOMWindow.cpp
    M Source/WebCore/page/LocalDOMWindow.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebPage/WebPage.messages.in

  Log Message:
  -----------
  Migrate sticky and history-action user activation to explicit boolean flags
https://bugs.webkit.org/show_bug.cgi?id=316317

Reviewed by Youenn Fablet.

Per the user-activation data model change in the proposed
whatwg/html#11454, track sticky activation and history-action activation
as explicit booleans on LocalDOMWindow instead of deriving them from the
last activation timestamp. m_lastActivationTimestamp continues to drive
transient activation only.

notifyActivated and its ancestor/descendant propagation, consume-history-
action, and WebPage::updateUserActivationTimestamps now update the
booleans alongside the timestamp. This is not gated behind a preference.
Behavior is preserved, except that consuming transient activation no
longer resurrects an already-consumed history-action activation, which
matches the proposed explicit boolean model.

* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::hasStickyActivation const):
(WebCore::LocalDOMWindow::hasHistoryActionActivation const):
(WebCore::LocalDOMWindow::consumeHistoryActionUserActivation):
(WebCore::LocalDOMWindow::notifyActivated):
* Source/WebCore/page/LocalDOMWindow.h:
(WebCore::LocalDOMWindow::setHasStickyActivation):
(WebCore::LocalDOMWindow::setHasHistoryActionActivation):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didNotifyUserActivation):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updateUserActivationState):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:

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



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

Reply via email to