Title: [212988] trunk/Tools
Revision
212988
Author
wenson_hs...@apple.com
Date
2017-02-24 19:24:59 -0800 (Fri, 24 Feb 2017)

Log Message

Unreviewed, fix the internal build.

* TestWebKitAPI/ios/DataInteractionSimulator.mm:
(-[DataInteractionSimulator _advanceProgress]):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (212987 => 212988)


--- trunk/Tools/ChangeLog	2017-02-25 03:23:10 UTC (rev 212987)
+++ trunk/Tools/ChangeLog	2017-02-25 03:24:59 UTC (rev 212988)
@@ -1,3 +1,10 @@
+2017-02-24  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        Unreviewed, fix the internal build.
+
+        * TestWebKitAPI/ios/DataInteractionSimulator.mm:
+        (-[DataInteractionSimulator _advanceProgress]):
+
 2017-02-24  Matt Rajca  <mra...@apple.com>
 
         Media: notify clients when autoplay is denied

Modified: trunk/Tools/TestWebKitAPI/ios/DataInteractionSimulator.mm (212987 => 212988)


--- trunk/Tools/TestWebKitAPI/ios/DataInteractionSimulator.mm	2017-02-25 03:23:10 UTC (rev 212987)
+++ trunk/Tools/TestWebKitAPI/ios/DataInteractionSimulator.mm	2017-02-25 03:24:59 UTC (rev 212988)
@@ -147,7 +147,7 @@
     switch (_phase) {
     case DataInteractionBeginning: {
         NSMutableArray<UIItemProvider *> *itemProviders = [NSMutableArray array];
-        NSArray<WKDataInteractionItem *> *items = [_webView _simulatedItemsForSession:_dataInteractionSession.get()];
+        NSArray *items = [_webView _simulatedItemsForSession:_dataInteractionSession.get()];
         if (!items.count) {
             _phase = DataInteractionCancelled;
             _currentProgress = 1;
@@ -155,11 +155,15 @@
             return;
         }
 
+#if HAS_DATA_INTERACTION_ITEMS
         for (WKDataInteractionItem *item in items)
             [itemProviders addObject:item.itemProvider];
+#endif
 
         _dataInteractionInfo = adoptNS([[MockDataInteractionInfo alloc] initWithProvider:itemProviders.firstObject location:self._currentLocation window:[_webView window]]);
+#if HAS_DATA_INTERACTION_ITEMS
         [_dataInteractionSession setItems:items];
+#endif
         [_webView _simulateWillBeginDataInteractionWithSession:_dataInteractionSession.get()];
         _phase = DataInteractionBegan;
         break;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to