Fix LSAppLink deprecation warnings.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 19:14:58 +0000 (19:14 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 19:14:58 +0000 (19:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194097

Unreviewed build fix.

* UIProcess/ios/WKActionSheetAssistant.mm:
(-[WKActionSheetAssistant _appendOpenActionsForURL:actions:elementInfo:]):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm

index dd09e1b..bb92455 100644 (file)
@@ -1,3 +1,13 @@
+2019-01-31  Timothy Hatcher  <timothy@apple.com>
+
+        Fix LSAppLink deprecation warnings.
+        https://bugs.webkit.org/show_bug.cgi?id=194097
+
+        Unreviewed build fix.
+
+        * UIProcess/ios/WKActionSheetAssistant.mm:
+        (-[WKActionSheetAssistant _appendOpenActionsForURL:actions:elementInfo:]):
+
 2019-01-30  Simon Fraser  <simon.fraser@apple.com>
 
         [Mac] Implement basic hit testing in the scrolling tree
index 148349a..5f2dd2e 100644 (file)
@@ -438,7 +438,10 @@ static const CGFloat presentationElementRectPadding = 15;
         if (appLink) {
             NSString *title = WEB_UI_STRING("Open in Safari", "Title for Open in Safari Link action button");
             _WKElementAction *openInDefaultBrowserAction = [_WKElementAction _elementActionWithType:_WKElementActionTypeOpenInDefaultBrowser title:title actionHandler:^(_WKActivatedElementInfo *) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
                 [appLink openInWebBrowser:YES setAppropriateOpenStrategyAndWebBrowserState:nil completionHandler:^(BOOL success, NSError *error) { }];
+#pragma clang diagnostic pop
             }];
             [defaultActions addObject:openInDefaultBrowserAction];
 
@@ -446,7 +449,10 @@ static const CGFloat presentationElementRectPadding = 15;
             if (externalApplicationName) {
                 NSString *title = [NSString stringWithFormat:WEB_UI_STRING("Open in “%@”", "Title for Open in External Application Link action button"), externalApplicationName];
                 _WKElementAction *openInExternalApplicationAction = [_WKElementAction _elementActionWithType:_WKElementActionTypeOpenInExternalApplication title:title actionHandler:^(_WKActivatedElementInfo *) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
                     [appLink openInWebBrowser:NO setAppropriateOpenStrategyAndWebBrowserState:nil completionHandler:^(BOOL success, NSError *error) { }];
+#pragma clang diagnostic pop
                 }];
                 [defaultActions addObject:openInExternalApplicationAction];
             }