Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B436B11AA5 for ; Mon, 16 Jun 2014 14:58:46 +0000 (UTC) Received: (qmail 54815 invoked by uid 500); 16 Jun 2014 14:58:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 54776 invoked by uid 500); 16 Jun 2014 14:58:46 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 54762 invoked by uid 99); 16 Jun 2014 14:58:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 14:58:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 14:58:42 +0000 Received: by mail-oa0-f52.google.com with SMTP id j17so5869865oag.39 for ; Mon, 16 Jun 2014 07:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=aWvIXEHwdXEXla3JxCJFi6U/Cke2Tr0b72VMZ0StImM=; b=DcU/hmZ0CK6Jy1YLLPLn2Q0k3wg9bDNPCvvgcZxEEB6qeWGVNuGswAwd7GMMDXnZEi oYHB97jYMwnp2KTfcUseJaUWGuwiRmQ7cCQh9C80BTPG9V28nAB53faK/cu+JNh9a5dv gNl6tat4KpiGhC7gjuaEqEerr3NU6m0+mvNhJZ+DB1jqPqA/1z8HF4S69VZbkLRxpQag +zKNAzhw7MrFVeODdy7/413U5j5zVWxfs91NgpstvEFElkv2RDVlfByYpMm6cjeIv2iY jN+/BkaVHG8kS+m33/FzkYelYDre3x8Fb/ch3IIJbjyyT54F8uKmDThOOLf22bYlk+uv fXjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=aWvIXEHwdXEXla3JxCJFi6U/Cke2Tr0b72VMZ0StImM=; b=mbJBe80HH4dD250mEqfJiIrOIEKM3G0/bHfYpOE8Kz3fwTbr1HFnuIuQ+3HNgTFyRp bdjJwFVBgPNh+Obl7CDUebSV/bwQDnmC3if3VGZOoYF2E1kA8ME9h8B4m3ZHVj+KRM/3 merYY6lYtPrN+OdiKez2Aof0IGqFYaLVZqdB4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=aWvIXEHwdXEXla3JxCJFi6U/Cke2Tr0b72VMZ0StImM=; b=ExIwAlvp1PyGM1MSNmrJW9YpaEzF3oC8Lrg0hFU1x2oAqBWYrlsHaWc3mfY7nh0q5P p7+CwG4CNmQx+7/8e5TQptLw511LgQ8aa9IJ8uZ5LoyoaxSZoN5I2KnW4lLU3138/+Yj 8W2CltIhsOpUDOLVExXbMsJLtW6GvCTPSGkNcfwu4SA0MP788X6PCq1EnWoAUmS6imhp MYnLd8Tk+5LPjeHvn5WLOG7bU9FCioNmxW4lKdKfZ7GlZM50JWCsfrwjHKDy0iNkCKmj CoKioa4LbHU1BcCKAB5QqnwIJ2iSH/GZ485TsZIKxbaT/w7VY5k5WRJ6g2bnRekrQfQM 05/g== X-Gm-Message-State: ALoCoQnCICtjr0/ZbzKJZwTLvu9Y2W2IfwMrLXg5eWT3p3dqrD+eJ2ynvshfbFUPQvGZjCgiHgM0 X-Received: by 10.60.45.130 with SMTP id n2mr20544705oem.12.1402930701559; Mon, 16 Jun 2014 07:58:21 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.135.78 with HTTP; Mon, 16 Jun 2014 07:58:01 -0700 (PDT) In-Reply-To: <1402791388.6855.0@smtp.gmail.com> References: <1402791388.6855.0@smtp.gmail.com> From: Andrew Grieve Date: Mon, 16 Jun 2014 10:58:01 -0400 X-Google-Sender-Auth: w016lQWfEJZtaI8Ad98BvC0vQNU Message-ID: Subject: Re: WKWebView for iOS8 To: dev Content-Type: multipart/alternative; boundary=001a11c20c561c876604fbf542b4 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20c561c876604fbf542b4 Content-Type: text/plain; charset=UTF-8 Awesome. Shaz (or anyone else), curious if you've tested yet to see if the whitelist still works with WKWebView? (e.g. does it go through NSURLProtocol?) On Sat, Jun 14, 2014 at 8:16 PM, tommy-carlos williams wrote: > This looks promising. > > Thanks for the update, Shazron. > > - tommy > > > On Sun, Jun 15, 2014 at 7:48 AM, Shazron wrote: > >> Rev log: http://trac.webkit.org/log/trunk/Source/WebKit2/ >> UIProcess/API/Cocoa/WKWebView.mm >> for potential WKWebView updates in beta 2. >> >> On Sat, Jun 14, 2014 at 2:46 PM, Shazron wrote: >> >>> Some potential good news. Updated 4 days ago, hopefully its in beta 2: >>> http://trac.webkit.org/changeset/169765 >>> >>> "Add -[WKWebView evaluateJavaScript:completionHandler:]" >>> >>> Updated: https://issues.apache.org/jira/browse/CB-6884 >>> >>> >>> On Sat, Jun 7, 2014 at 10:06 PM, Carlos Santana >>> wrote: >>> >>>> ok, was a bit confuse with api doc, I assumed that there was a way to >>>> specify a time other than documentstart, documentend, and no passing >>>> something will do it immediately. >>>> >>>> Will open a radar too, we need wkwebview to officialy support for >>>> objc->js, >>>> postMessage seems kind of half working if only can do js->objc >>>> >>>> >>>> On Sat, Jun 7, 2014 at 10:48 PM, Shazron wrote: >>>> >>>> No it's not. That is precisely what we discussed, it's the limitation >>>>> in >>>>> WKUserScript. >>>>> >>>>> On Saturday, June 7, 2014, Carlos Santana >>>>> wrote: >>>>> >>>>> > Shaz >>>>> > I think the closest replacement is [1] - (void)addUserScript:( >>>>> > WKUserScript *)*userScript * >>>>> > >>>>> > I have not tried my self, but looking forward on helping out. >>>>> > >>>>> > [1]: >>>>> > >>>>> > >>>>> https://developer.apple.com/library/prerelease/ios/ >>>>> documentation/WebKit/Reference/WKUserContentController_Ref/ >>>>> index.html#//apple_ref/occ/instm/WKUserContentController/addUserScript >>>>> > : >>>>> > >>>>> > >>>>> > On Fri, Jun 6, 2014 at 12:47 AM, Shazron wrote: >>>>> > >>>>> > > No use in polling if we can't write anything back to JS from >>>>> Obj-C. >>>>> > > >>>>> > > There's a private API to do so: >>>>> > > >>>>> > > >>>>> > >>>>> https://github.com/WebKit/webkit/commit/ >>>>> adb4c60064b38b5ab3d6e78422325f35f0b7fe2b >>>>> > > only landed a few months ago, we'll have to do some advocacy >>>>> through >>>>> > > whatever channels we have to get it in the public API (radars, >>>>> > > connections), since it is a deficiency in their API losing >>>>> something >>>>> > > like stringByEvaluatingJavaScriptFromString >>>>> > > >>>>> > > >>>>> > > >>>>> > > On Thu, Jun 5, 2014 at 6:09 PM, Michal Mocny >>>> > >>>>> > wrote: >>>>> > > > Oh wow. I totally assumed that you can postMessage in either >>>>> direction >>>>> > > at >>>>> > > > any time. Wouldn't the alternative be polling from JS? >>>>> > > > >>>>> > > > -Michal >>>>> > > > >>>>> > > > >>>>> > > > On Thu, Jun 5, 2014 at 6:46 PM, Shazron >>>>> wrote: >>>>> > > > >>>>> > > >> Well seems like the answer in iOS 8 beta 1 is -- no arbitrary >>>>> sending >>>>> > > >> of JS, so no Obj-C -> JS communication, which leaves Cordova >>>>> > > >> handcuffed. Please everyone file radars for this. >>>>> > > >> https://devforums.apple.com/message/975230#975230 >>>>> > > >> >>>>> > > >> On Thu, Jun 5, 2014 at 3:40 PM, Shazron >>>>> wrote: >>>>> > > >> > Thanks Tommy - I sure will. >>>>> > > >> > >>>>> > > >> > I think injecting JavaScript at arbitrary times -- you would >>>>> just >>>>> > use >>>>> > > >> > WKUserScriptInjectionTimeAtDocumentEnd for WKUserScript -- >>>>> although >>>>> > I >>>>> > > >> > haven't tested it. If setting JS at arbitrary times is taken >>>>> away >>>>> - >>>>> > > >> > yikes. >>>>> > > >> > >>>>> > > >> > Anyways, on the bridge front, I've posted my approach for >>>>> the new >>>>> > > bridge: >>>>> > > >> > https://issues.apache.org/jira/browse/CB-6884 >>>>> > > >> > >>>>> > > >> > On Thu, Jun 5, 2014 at 2:06 PM, Tommy Williams < >>>>> tommy@devgeeks.org> >>>>> > > >> wrote: >>>>> > > >> >> I am sure you won't need it, but if I can help, let me know. >>>>> > > >> >> >>>>> > > >> >> I think the biggest hurdle will be firing user scripts at >>>>> arbitrary >>>>> > > >> times >>>>> > > >> >> instead of only on page load.. There seems to be an API that >>>>> hasn't >>>>> > > been >>>>> > > >> >> exposed :/ >>>>> > > >> >> On 6 Jun 2014 04:59, "Shazron" wrote: >>>>> > > >> >> >>>>> > > >> >>> My intent is to work on this today, in a branch for >>>>> cordova-ios: >>>>> > > >> >>> https://issues.apache.org/jira/browse/CB-6863 >>>>> > > >> >>> >>>>> > > >> >>> On Wed, Jun 4, 2014 at 10:15 AM, Shazron < >>>>> shazron@gmail.com> >>>>> > wrote: >>>>> > > >> >>> > Use Safari to watch "Introducing the Modern WebKit API" >>>>> (no >>>>> > login >>>>> > > >> >>> required): >>>>> > > >> >>> > https://developer.apple.com/videos/wwdc/2014/ >>>>> > > >> >>> > >>>>> > > >> >>> > On Wed, Jun 4, 2014 at 8:25 AM, Michal Mocny < >>>>> > mmocny@chromium.org >>>>> > > > >>>>> > > >> >>> wrote: >>>>> > > >> >>> >> You can probably bet on it. >>>>> > > >> >>> >> >>>>> > > >> >>> >> But this is really fresh news, we're as excited as you >>>>> are, >>>>> > > trying >>>>> > > >> to >>>>> > > >> >>> >> figure out the details. >>>>> > > >> >>> >> >>>>> > > >> >>> >> >>>>> > > >> >>> >> On Wed, J-- >>>>> > Carlos Santana >>>>> > > >>>>> > >>>>> >>>>> >>>> >>>> >>>> -- >>>> Carlos Santana >>>> >>>> >>> --001a11c20c561c876604fbf542b4--