[webkit-changes] [WebKit/WebKit] afeef8: [Site Isolation] Begin implementing window.blur()

Charlie Wolfe noreply at github.com
Thu Jan 25 20:48:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: afeef8f88df4278d339cba9b2ffb444f0a349cc1
      https://github.com/WebKit/WebKit/commit/afeef8f88df4278d339cba9b2ffb444f0a349cc1
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M Source/WebCore/page/RemoteDOMWindow.cpp
    M Source/WebCore/page/RemoteFrameClient.h
    M Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
    M Tools/TestWebKitAPI/cocoa/TestUIDelegate.h
    M Tools/TestWebKitAPI/cocoa/TestUIDelegate.mm

  Log Message:
  -----------
  [Site Isolation] Begin implementing window.blur()
https://bugs.webkit.org/show_bug.cgi?id=268122
rdar://121629787

Reviewed by Alex Christensen.

window.blur() won't remove focus from the frame in the web process, so we just need to call
`WebPageProxy::setFocus()` and verify the delegate is called.

* Source/WebCore/page/RemoteDOMWindow.cpp:
(WebCore::RemoteDOMWindow::blur):
* Source/WebCore/page/RemoteFrameClient.h:
* Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.cpp:
(WebKit::WebRemoteFrameClient::unfocus):
* Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::TEST):
* Tools/TestWebKitAPI/cocoa/TestUIDelegate.h:
* Tools/TestWebKitAPI/cocoa/TestUIDelegate.mm:
(-[TestUIDelegate _unfocusWebView:]):

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




More information about the webkit-changes mailing list