You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/09/17 22:47:34 UTC

[jira] [Updated] (CB-7051) [WKWebView] Support evaluateJavaScript:completionHandler:

     [ https://issues.apache.org/jira/browse/CB-7051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-7051:
---------------------------------
    Summary: [WKWebView] Support evaluateJavaScript:completionHandler:  (was: Support evaluateJavaScript:completionHandler: in WKWebView)

> [WKWebView] Support evaluateJavaScript:completionHandler:
> ---------------------------------------------------------
>
>                 Key: CB-7051
>                 URL: https://issues.apache.org/jira/browse/CB-7051
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>         Environment: iOS 8 beta 2
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>
> https://git-wip-us.apache.org/repos/asf/cordova-ios.git branch "wkwebview"
> http://trac.webkit.org/changeset/169765
> Change summary:
> Add -[WKWebView evaluateJavaScript:completionHandler:]
> Right now it's using the private method _runJavaScriptInFrame, in a category, and returns an empty string in the completionHandler. 
> Hopefully this method is added in iOS 8 beta 3.
> Filed:
> rdar://problem/17423463
> -----
> Summary:
> There is no API function to do this. Yes, you can use WKUserScripts to write at before the document is loaded and after, but not at arbitrary times. You need an equivalent to [UIWebView stringByEvaluationJavascriptFromString:(NSString*)]
> Steps to Reproduce:
> 1. Use WKWebView.
> 2. Try to evaluate JavaScript at an arbitrary time
> Expected Results:
> Ability evaluate JavaScript at an arbitrary time
> Actual Results:
> Not able to evaluate JavaScript at an arbitrary time
> Version:
> iOS 8 beta 2
> Configuration:
> iOS Simulator, iPad 2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)