[webkit-changes] [WebKit/WebKit] 202ac2: Need a mechanism for script to attach user info fo...

Ryosuke Niwa noreply at github.com
Mon Dec 16 20:14:33 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 202ac2fb2b13da9c344a938b4f22dd7e838ec6a6
      https://github.com/WebKit/WebKit/commit/202ac2fb2b13da9c344a938b4f22dd7e838ec6a6
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Element.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp

  Log Message:
  -----------
  Need a mechanism for script to attach user info for focusShouldStartInputSession/decidePolicyForFocusedElement
https://bugs.webkit.org/show_bug.cgi?id=284685

Reviewed by Wenson Hsieh.

Change the order of focus/blur chrome client callback and corresponding DOM events so that injected scripts
have a chance to provide user info for WebPage::elementDidFocus.

* Source/WebCore/dom/Element.cpp:
(WebCore::Element::dispatchFocusEvent):
(WebCore::Element::dispatchBlurEvent):
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::userDataFromJSONData):
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::elementDidFocus):

Canonical link: https://commits.webkit.org/287924@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