Title: [264675] trunk/Source/WebKit
Revision
264675
Author
james.sav...@apple.com
Date
2020-07-21 14:02:58 -0700 (Tue, 21 Jul 2020)

Log Message

Unable to call WKScriptMessageHandlerWithReply's replyHandler with a nil errorMessage in Swift
https://bugs.webkit.org/show_bug.cgi?id=214581
<rdar://problem/65639342>

Reviewed by Brady Eidson.

* UIProcess/API/Cocoa/WKScriptMessageHandlerWithReply.h: Modify the block
signature to allow nil for either argument.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (264674 => 264675)


--- trunk/Source/WebKit/ChangeLog	2020-07-21 20:35:28 UTC (rev 264674)
+++ trunk/Source/WebKit/ChangeLog	2020-07-21 21:02:58 UTC (rev 264675)
@@ -1,3 +1,14 @@
+2020-07-21  James Savage  <james.sav...@apple.com>
+
+        Unable to call WKScriptMessageHandlerWithReply's replyHandler with a nil errorMessage in Swift
+        https://bugs.webkit.org/show_bug.cgi?id=214581
+        <rdar://problem/65639342>
+
+        Reviewed by Brady Eidson.
+
+        * UIProcess/API/Cocoa/WKScriptMessageHandlerWithReply.h: Modify the block
+        signature to allow nil for either argument.
+
 2020-07-21  Kate Cheney  <katherine_che...@apple.com>
 
         Frequent Network error messages: "ResourceLoadStatisticsDatabaseStore::topPrevalentResourceWithUserInteractionDaysSinceUserInteractionStatement query failed to step, error message: no more rows available"

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKScriptMessageHandlerWithReply.h (264674 => 264675)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKScriptMessageHandlerWithReply.h	2020-07-21 20:35:28 UTC (rev 264674)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKScriptMessageHandlerWithReply.h	2020-07-21 21:02:58 UTC (rev 264675)
@@ -87,7 +87,7 @@
    - The _javascript_ promise is fulfilled with the value 42.
    - _javascript_ execution continues and the value 42 is returned.
  */
-- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message replyHandler:(void (^)(id reply, NSString *errorMessage))replyHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
+- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message replyHandler:(void (^)(id _Nullable reply, NSString *_Nullable errorMessage))replyHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
 @end
 
 NS_ASSUME_NONNULL_END
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to