Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DEF6114C1 for ; Fri, 27 Jun 2014 22:49:26 +0000 (UTC) Received: (qmail 27708 invoked by uid 500); 27 Jun 2014 22:49:26 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 27684 invoked by uid 500); 27 Jun 2014 22:49:26 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 27652 invoked by uid 99); 27 Jun 2014 22:49:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2014 22:49:26 +0000 Date: Fri, 27 Jun 2014 22:49:26 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-7051) Support evaluateJavaScript:completionHandler: in WKWebView MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-7051: --------------------------------- Environment: iOS 8 beta 2 > Support evaluateJavaScript:completionHandler: in WKWebView > ---------------------------------------------------------- > > 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 > > Branch: https://github.com/shazron/cordova-ios/tree/wkwebview-only > 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.2#6252)