Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cfbce92003b43e255d602b612edd120c86b83ca3
      
https://github.com/WebKit/WebKit/commit/cfbce92003b43e255d602b612edd120c86b83ca3
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    A 
LayoutTests/fast/events/popup-blocked-after-user-gesture-is-expired-after-post-message-expected.txt
    A 
LayoutTests/fast/events/popup-blocked-after-user-gesture-is-expired-after-post-message.html
    M Source/WebCore/page/LocalDOMWindow.cpp

  Log Message:
  -----------
  postMessage can indefinitely extend the lifetime of a user gesture token
https://bugs.webkit.org/show_bug.cgi?id=310863
rdar://173355201

Reviewed by Chris Dumez.

Clear the user gesture token if it has been expired after postMessage.

Test: 
fast/events/popup-blocked-after-user-gesture-is-expired-after-post-message.html

* 
LayoutTests/fast/events/popup-blocked-after-user-gesture-is-expired-after-post-message-expected.txt:
 Added.
* 
LayoutTests/fast/events/popup-blocked-after-user-gesture-is-expired-after-post-message.html:
 Added.
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::processPostMessage):

Originally-landed-as: 305413.591@rapid/safari-7624.2.5.110-branch 
(cb335a3aea4b). rdar://176061151
Canonical link: https://commits.webkit.org/314124@main



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

Reply via email to