Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6cd63d507d5843c78669345b3a659195210faa86
      
https://github.com/WebKit/WebKit/commit/6cd63d507d5843c78669345b3a659195210faa86
  Author: Ben Nham <n...@apple.com>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
    M Source/WebKit/UIProcess/Cocoa/UIDelegate.h
    M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm

  Log Message:
  -----------
  Expose focusWebViewFromServiceWorker on iOS
https://bugs.webkit.org/show_bug.cgi?id=279104
rdar://135247073

Reviewed by Per Arne Vollan.

`_focusWebViewFromServiceWorker` is marked as being available on iOS, but 
doesn't actually work
since it is part of a `PLATFORM(MAC)` block. Fix this by moving this out of the 
`PLATFORM(MAC)`
block.

For backwards compatibility, if the delegate doesn't implement this method, 
then continue to do
nothing on iOS. On Mac, we continue to provide a default implementation that 
tries to focus the web
view's window.

* Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::setDelegate):
(WebKit::UIDelegate::UIClient::focusFromServiceWorker):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to