Changeset 263793 in webkit
- Timestamp:
- Jul 1, 2020, 3:36:45 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
SwiftOverlay/Tests/WebKitTests.swift (modified) (1 diff)
-
UIProcess/API/Cocoa/WebKitSwiftOverlay.swift (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r263789 r263793 1 2020-07-01 James Savage <james.savage@apple.com> 2 3 Fix Swift overlay build after r263727. 4 https://bugs.webkit.org/show_bug.cgi?id=213823. 5 6 Unreviewed, follow up build fix. 7 8 * SwiftOverlay/Tests/WebKitTests.swift: 9 (WebKitTests.testAPI): Fix tests to refer to new parameter name. 10 * UIProcess/API/Cocoa/WebKitSwiftOverlay.swift: 11 (callAsyncJavaScript(_:arguments:in:in:completionHandler:Error:)): Use 12 the imported ObjC name that the compiler expects. 13 (evaluateJavaScript(_:in:in:completionHandler:Error:)): Ditto. 14 1 15 2020-07-01 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebKit/SwiftOverlay/Tests/WebKitTests.swift
r262849 r263793 31 31 func testAPI() { 32 32 _ = WKContentWorld.world(name:) 33 _ = WKWebView.callAsyncJavaScript(_:arguments:in: completionHandler:)33 _ = WKWebView.callAsyncJavaScript(_:arguments:in:in:completionHandler:) 34 34 _ = WKWebView.createPDF(configuration:completionHandler:) 35 35 _ = WKWebView.createWebArchiveData(completionHandler:) 36 _ = WKWebView.evaluateJavaScript(_:in: completionHandler:)36 _ = WKWebView.evaluateJavaScript(_:in:in:completionHandler:) 37 37 _ = WKWebView.find(_:configuration:completionHandler:) 38 38 } -
trunk/Source/WebKit/UIProcess/API/Cocoa/WebKitSwiftOverlay.swift
r263781 r263793 37 37 extension WKWebView { 38 38 public func callAsyncJavaScript(_ functionBody: String, arguments: [String:Any] = [:], in frame: WKFrameInfo? = nil, in contentWorld: WKContentWorld, completionHandler: ((Result<Any, Error>) -> Void)? = nil) { 39 __callAsyncJavaScript(functionBody, arguments: arguments, in : frame, in: contentWorld, completionHandler: completionHandler.map(makeResultHandler))39 __callAsyncJavaScript(functionBody, arguments: arguments, inFrame: frame, in: contentWorld, completionHandler: completionHandler.map(makeResultHandler)) 40 40 } 41 41 … … 49 49 50 50 public func evaluateJavaScript(_ javaScript: String, in frame: WKFrameInfo? = nil, in contentWorld: WKContentWorld, completionHandler: ((Result<Any, Error>) -> Void)? = nil) { 51 __evaluateJavaScript(javaScript, in : frame, in: contentWorld, completionHandler: completionHandler.map(makeResultHandler))51 __evaluateJavaScript(javaScript, inFrame: frame, in: contentWorld, completionHandler: completionHandler.map(makeResultHandler)) 52 52 } 53 53
Note:
See TracChangeset
for help on using the changeset viewer.