Changeset 248456 in webkit


Ignore:
Timestamp:
Aug 8, 2019 7:11:18 PM (5 years ago)
Author:
dino@apple.com
Message:

REGRESSION (52279987): Most of the WKUIDelegate contextMenu delegate methods are not being called
https://bugs.webkit.org/show_bug.cgi?id=200557
<rdar://problem/53717962>

Reviewed by Wenson Hsieh.

UIKit changed the name of delegates recently. We ignored the warning because
it was still calling the old methods. However, it will only do so for applications
authored by Apple, breaking 3rd parties.

The change here is just adopting the new methods in place of the old ones.
It does not change the API that WebKit vends (they still use the older names).

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView contextMenuInteraction:willDisplayMenuForConfiguration:animator:]):
(-[WKContentView contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:]):
(-[WKContentView contextMenuInteraction:willEndForConfiguration:animator:]):
(-[WKContentView contextMenuInteractionWillPresent:]): Deleted.
(-[WKContentView contextMenuInteraction:willCommitWithAnimator:]): Deleted.
(-[WKContentView contextMenuInteractionDidEnd:]): Deleted.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r248455 r248456  
     12019-08-08  Dean Jackson  <dino@apple.com>
     2
     3        REGRESSION (52279987): Most of the WKUIDelegate contextMenu delegate methods are not being called
     4        https://bugs.webkit.org/show_bug.cgi?id=200557
     5        <rdar://problem/53717962>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        UIKit changed the name of delegates recently. We ignored the warning because
     10        it was still calling the old methods. However, it will only do so for applications
     11        authored by Apple, breaking 3rd parties.
     12
     13        The change here is just adopting the new methods in place of the old ones.
     14        It does not change the API that WebKit vends (they still use the older names).
     15
     16        * UIProcess/ios/WKContentViewInteraction.mm:
     17        (-[WKContentView contextMenuInteraction:willDisplayMenuForConfiguration:animator:]):
     18        (-[WKContentView contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:]):
     19        (-[WKContentView contextMenuInteraction:willEndForConfiguration:animator:]):
     20        (-[WKContentView contextMenuInteractionWillPresent:]): Deleted.
     21        (-[WKContentView contextMenuInteraction:willCommitWithAnimator:]): Deleted.
     22        (-[WKContentView contextMenuInteractionDidEnd:]): Deleted.
     23
    1242019-08-08  Simon Fraser  <simon.fraser@apple.com>
    225
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r248455 r248456  
    82058205}
    82068206
    8207 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8208 - (void)contextMenuInteractionWillPresent:(UIContextMenuInteraction *)interaction
    8209 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8207- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willDisplayMenuForConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionAnimating>)animator
    82108208{
    82118209    if (!_webView)
     
    82288226}
    82298227
    8230 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8231 - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator
    8232 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8228- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator
    82338229{
    82348230    if (!_webView)
     
    82838279}
    82848280
    8285 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8286 - (void)contextMenuInteractionDidEnd:(UIContextMenuInteraction *)interaction
    8287 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8281- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willEndForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator
    82888282{
    82898283    if (!_webView)
Note: See TracChangeset for help on using the changeset viewer.