⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 263793 in webkit


Ignore:
Timestamp:
Jul 1, 2020, 3:36:45 AM (6 years ago)
Author:
James Savage
Message:

Fix Swift overlay build after r263727.
https://bugs.webkit.org/show_bug.cgi?id=213823.

Unreviewed, follow up build fix.

  • SwiftOverlay/Tests/WebKitTests.swift:

(WebKitTests.testAPI): Fix tests to refer to new parameter name.

  • UIProcess/API/Cocoa/WebKitSwiftOverlay.swift:

(callAsyncJavaScript(_:arguments:in:in:completionHandler:Error:)): Use
the imported ObjC name that the compiler expects.
(evaluateJavaScript(_:in:in:completionHandler:Error:)): Ditto.

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r263789 r263793  
     12020-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
    1152020-07-01  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebKit/SwiftOverlay/Tests/WebKitTests.swift

    r262849 r263793  
    3131    func testAPI() {
    3232        _ = WKContentWorld.world(name:)
    33         _ = WKWebView.callAsyncJavaScript(_:arguments:in:completionHandler:)
     33        _ = WKWebView.callAsyncJavaScript(_:arguments:in:in:completionHandler:)
    3434        _ = WKWebView.createPDF(configuration:completionHandler:)
    3535        _ = WKWebView.createWebArchiveData(completionHandler:)
    36         _ = WKWebView.evaluateJavaScript(_:in:completionHandler:)
     36        _ = WKWebView.evaluateJavaScript(_:in:in:completionHandler:)
    3737        _ = WKWebView.find(_:configuration:completionHandler:)
    3838    }
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WebKitSwiftOverlay.swift

    r263781 r263793  
    3737extension WKWebView {
    3838    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))
    4040    }
    4141
     
    4949
    5050    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))
    5252    }
    5353
Note: See TracChangeset for help on using the changeset viewer.