⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248460 in webkit


Ignore:
Timestamp:
Aug 8, 2019, 10:01:26 PM (7 years ago)
Author:
Kocsen Chung
Message:

Cherry-pick r248456. rdar://problem/54109878

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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248456 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608.1-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1-branch/Source/WebKit/ChangeLog

    r248459 r248460  
     12019-08-08  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r248456. rdar://problem/54109878
     4
     5    REGRESSION (52279987): Most of the WKUIDelegate contextMenu delegate methods are not being called
     6    https://bugs.webkit.org/show_bug.cgi?id=200557
     7    <rdar://problem/53717962>
     8   
     9    Reviewed by Wenson Hsieh.
     10   
     11    UIKit changed the name of delegates recently. We ignored the warning because
     12    it was still calling the old methods. However, it will only do so for applications
     13    authored by Apple, breaking 3rd parties.
     14   
     15    The change here is just adopting the new methods in place of the old ones.
     16    It does not change the API that WebKit vends (they still use the older names).
     17   
     18    * UIProcess/ios/WKContentViewInteraction.mm:
     19    (-[WKContentView contextMenuInteraction:willDisplayMenuForConfiguration:animator:]):
     20    (-[WKContentView contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:]):
     21    (-[WKContentView contextMenuInteraction:willEndForConfiguration:animator:]):
     22    (-[WKContentView contextMenuInteractionWillPresent:]): Deleted.
     23    (-[WKContentView contextMenuInteraction:willCommitWithAnimator:]): Deleted.
     24    (-[WKContentView contextMenuInteractionDidEnd:]): Deleted.
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2019-08-08  Dean Jackson  <dino@apple.com>
     29
     30            REGRESSION (52279987): Most of the WKUIDelegate contextMenu delegate methods are not being called
     31            https://bugs.webkit.org/show_bug.cgi?id=200557
     32            <rdar://problem/53717962>
     33
     34            Reviewed by Wenson Hsieh.
     35
     36            UIKit changed the name of delegates recently. We ignored the warning because
     37            it was still calling the old methods. However, it will only do so for applications
     38            authored by Apple, breaking 3rd parties.
     39
     40            The change here is just adopting the new methods in place of the old ones.
     41            It does not change the API that WebKit vends (they still use the older names).
     42
     43            * UIProcess/ios/WKContentViewInteraction.mm:
     44            (-[WKContentView contextMenuInteraction:willDisplayMenuForConfiguration:animator:]):
     45            (-[WKContentView contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:]):
     46            (-[WKContentView contextMenuInteraction:willEndForConfiguration:animator:]):
     47            (-[WKContentView contextMenuInteractionWillPresent:]): Deleted.
     48            (-[WKContentView contextMenuInteraction:willCommitWithAnimator:]): Deleted.
     49            (-[WKContentView contextMenuInteractionDidEnd:]): Deleted.
     50
    1512019-08-08  Kocsen Chung  <kocsen_chung@apple.com>
    252
  • branches/safari-608.1-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r248459 r248460  
    81728172}
    81738173
    8174 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8175 - (void)contextMenuInteractionWillPresent:(UIContextMenuInteraction *)interaction
    8176 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8174- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willDisplayMenuForConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionAnimating>)animator
    81778175{
    81788176    if (!_webView)
     
    81958193}
    81968194
    8197 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8198 - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator
    8199 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8195- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator
    82008196{
    82018197    if (!_webView)
     
    82508246}
    82518247
    8252 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    8253 - (void)contextMenuInteractionDidEnd:(UIContextMenuInteraction *)interaction
    8254 ALLOW_DEPRECATED_IMPLEMENTATIONS_END
     8248- (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willEndForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator
    82558249{
    82568250    if (!_webView)
Note: See TracChangeset for help on using the changeset viewer.