Changeset 248460 in webkit
- Timestamp:
- Aug 8, 2019, 10:01:26 PM (7 years ago)
- Location:
- branches/safari-608.1-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1-branch/Source/WebKit/ChangeLog
r248459 r248460 1 2019-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 1 51 2019-08-08 Kocsen Chung <kocsen_chung@apple.com> 2 52 -
branches/safari-608.1-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r248459 r248460 8172 8172 } 8173 8173 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 8177 8175 { 8178 8176 if (!_webView) … … 8195 8193 } 8196 8194 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 8200 8196 { 8201 8197 if (!_webView) … … 8250 8246 } 8251 8247 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 8255 8249 { 8256 8250 if (!_webView)
Note:
See TracChangeset
for help on using the changeset viewer.