You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Shazron <sh...@gmail.com> on 2014/09/05 20:40:17 UTC

[iOS 8] Status of WKWebView work

I figure I will write this all up before the official release of iOS 8 next
week (probability high) and everyone asking about support.

It has stalled because the WKWebView cannot load files using the file://
protocol since iOS 8 beta 4.

This bug has been filed with Apple weeks ago:
http://www.openradar.me/radar?id=5839348817723392

I even checked WebKit check-ins if there was any progress, so far, no:
http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
(but it's entirely possible the loading code is in another part of the
tree).

The alternative is to run a local web server, which works great. However,
this will open up a can of worms possibly with Apple, I'm not sure.

The other interesting tidbit is, with WKWebView, for locally loaded files
using the file:// protocol, cross-domain restrictions now apply, unlike
UIWebView's behaviour. To have the same behaviour as UIWebView, we would
need to proxy these requests (modify xhr.open to go to our proxy, which
requires the local web server).

The bridge works great, and plugins work great.

Re: [iOS 8] Status of WKWebView work

Posted by Marcel Kinard <cm...@gmail.com>.
On Linux, it's pretty easy to listen only on localhost, I don't know how difficult it is here. I would think that even for an experimental plugin, not being accessible to peers is really important. Not being accessible to other local apps will likely become important in the future.

It still scares me that a local http server is the solution, but alas I see how there aren't other options available yet. Crossing fingers for a fix from Apple in iOS 8.1...

On Oct 8, 2014, at 1:33 PM, Shazron <sh...@gmail.com> wrote:

> Not sure if it's only bound to local requests from localhost. Since it's
> for experimental reasons, I'm not too concerned for security. I'm still
> opting for the WKWebView loadFileURL way as the option we use for our
> users, once that is out.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Ok, I completed the plugin.

cordova plugin add https://github.com/shazron/CordovaLocalWebServer.git

.. then follow the instructions printed after it installs.

Repo: https://github.com/shazron/CordovaLocalWebServer

File issues: https://github.com/shazron/CordovaLocalWebServer/issues


On Wed, Oct 8, 2014 at 12:35 PM, Brian LeRoux <b...@brian.io> wrote:

> Will def be a fun alpha…fwiw I think this is The Future™ for the
> architecture. Opens lots of doors for interop and reuse. Between apps.
> Between devices. Also clears up the network security policy whitelist gong
> show.
>
> On Wed, Oct 8, 2014 at 12:31 PM, Joe Bowser <bo...@gmail.com> wrote:
>
>> How can you guarantee that the port will be released when it goes in the
>> background and not still be bound? That sounds like a main point of
>> failure.  Would you have it increment to the next port if the port is
>> bound?
>>
>> On Wed, Oct 8, 2014 at 12:27 PM, Brian LeRoux <b...@brian.io> wrote:
>>
>>> I guess if it isn't running in the background then a collision is
>>> effectively impossible anyhow.
>>>
>>> On Wed, Oct 8, 2014 at 11:53 AM, Shazron <sh...@gmail.com> wrote:
>>>
>>> > But for 2, there is a chance of port collision still of course,
>>> nothing we
>>> > can do about that. The ideal way is to get a random port, but this
>>> requires
>>> > more Cordova integration which I am trying to avoid (since we need to
>>> > specify the URL in the content tag, we need to know the port as well)
>>> >
>>> > On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:
>>> >
>>> >> 1. Does it run in the background? No. Unless we put up some variables
>>> in
>>> >> Info.plist, which are reserved for certain types of apps (navigation
>>> apps,
>>> >> etc)
>>> >> 2. Local web server port collision? This will be specified in the
>>> plugin
>>> >> in a preference.
>>> >>
>>> >> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
>>> >>
>>> >>> I have some questions! What happens when you background / does it
>>> keep
>>> >>> running? Since you're running localhost, how do you deal with >1 app
>>> >>> (random port collision possible?)
>>> >>>
>>> >>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>>> >>>
>>> >>>> Not sure if it's only bound to local requests from localhost. Since
>>> it's
>>> >>>> for experimental reasons, I'm not too concerned for security. I'm
>>> still
>>> >>>> opting for the WKWebView loadFileURL way as the option we use for
>>> our
>>> >>>> users, once that is out.
>>> >>>>
>>> >>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <
>>> purplecabbage@gmail.com
>>> >>>> >
>>> >>>> wrote:
>>> >>>>
>>> >>>> > What about other requests from the network? Is the server
>>> accessible
>>> >>>> to
>>> >>>> > network peers?
>>> >>>> >
>>> >>>> > Sent from my iPhone
>>> >>>> >
>>> >>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>>> >>>> > >
>>> >>>> > > I'll release the local webserver soon as a plugin, it was just a
>>> >>>> proof of
>>> >>>> > > concept. It should work with existing Cordova versions as well,
>>> but
>>> >>>> will
>>> >>>> > > not have a way to secure access to the local web server from
>>> other
>>> >>>> > > (background) running apps.
>>> >>>> > >
>>> >>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <
>>> >>>> agrieve@chromium.org>
>>> >>>> > wrote:
>>> >>>> > >>
>>> >>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>
>>> >>>> wrote:
>>> >>>> > >>>
>>> >>>> > >>> I figure I will write this all up before the official release
>>> of
>>> >>>> iOS 8
>>> >>>> > >> next
>>> >>>> > >>> week (probability high) and everyone asking about support.
>>> >>>> > >>>
>>> >>>> > >>> It has stalled because the WKWebView cannot load files using
>>> the
>>> >>>> > file://
>>> >>>> > >>> protocol since iOS 8 beta 4.
>>> >>>> > >>>
>>> >>>> > >>> This bug has been filed with Apple weeks ago:
>>> >>>> > >>> http://www.openradar.me/radar?id=5839348817723392
>>> >>>> > >>>
>>> >>>> > >>> I even checked WebKit check-ins if there was any progress, so
>>> >>>> far, no:
>>> >>>> > >>
>>> >>>> >
>>> >>>>
>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>> >>>> > >>> (but it's entirely possible the loading code is in another
>>> part
>>> >>>> of the
>>> >>>> > >>> tree).
>>> >>>> > >>>
>>> >>>> > >>> The alternative is to run a local web server, which works
>>> great.
>>> >>>> > However,
>>> >>>> > >>> this will open up a can of worms possibly with Apple, I'm not
>>> >>>> sure.
>>> >>>> > >>
>>> >>>> > >> Shaz, did you implement a prototype with a local web server?
>>> Would
>>> >>>> be
>>> >>>> > >> useful to see how the code for this works.
>>> >>>> > >>
>>> >>>> > >>
>>> >>>> > >>
>>> >>>> > >>>
>>> >>>> > >>> The other interesting tidbit is, with WKWebView, for locally
>>> >>>> loaded
>>> >>>> > files
>>> >>>> > >>> using the file:// protocol, cross-domain restrictions now
>>> apply,
>>> >>>> unlike
>>> >>>> > >>> UIWebView's behaviour. To have the same behaviour as
>>> UIWebView, we
>>> >>>> > would
>>> >>>> > >>> need to proxy these requests (modify xhr.open to go to our
>>> proxy,
>>> >>>> which
>>> >>>> > >>> requires the local web server).
>>> >>>> > >>>
>>> >>>> > >>> The bridge works great, and plugins work great.
>>> >>>> > >>
>>> >>>> >
>>> >>>>
>>> >>>
>>> >>>
>>> >>
>>> >
>>>
>>
>>
>

Re: [iOS 8] Status of WKWebView work

Posted by Brian LeRoux <b...@brian.io>.
Will def be a fun alpha…fwiw I think this is The Future™ for the
architecture. Opens lots of doors for interop and reuse. Between apps.
Between devices. Also clears up the network security policy whitelist gong
show.

On Wed, Oct 8, 2014 at 12:31 PM, Joe Bowser <bo...@gmail.com> wrote:

> How can you guarantee that the port will be released when it goes in the
> background and not still be bound? That sounds like a main point of
> failure.  Would you have it increment to the next port if the port is
> bound?
>
> On Wed, Oct 8, 2014 at 12:27 PM, Brian LeRoux <b...@brian.io> wrote:
>
>> I guess if it isn't running in the background then a collision is
>> effectively impossible anyhow.
>>
>> On Wed, Oct 8, 2014 at 11:53 AM, Shazron <sh...@gmail.com> wrote:
>>
>> > But for 2, there is a chance of port collision still of course, nothing
>> we
>> > can do about that. The ideal way is to get a random port, but this
>> requires
>> > more Cordova integration which I am trying to avoid (since we need to
>> > specify the URL in the content tag, we need to know the port as well)
>> >
>> > On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:
>> >
>> >> 1. Does it run in the background? No. Unless we put up some variables
>> in
>> >> Info.plist, which are reserved for certain types of apps (navigation
>> apps,
>> >> etc)
>> >> 2. Local web server port collision? This will be specified in the
>> plugin
>> >> in a preference.
>> >>
>> >> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
>> >>
>> >>> I have some questions! What happens when you background / does it keep
>> >>> running? Since you're running localhost, how do you deal with >1 app
>> >>> (random port collision possible?)
>> >>>
>> >>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>> >>>
>> >>>> Not sure if it's only bound to local requests from localhost. Since
>> it's
>> >>>> for experimental reasons, I'm not too concerned for security. I'm
>> still
>> >>>> opting for the WKWebView loadFileURL way as the option we use for our
>> >>>> users, once that is out.
>> >>>>
>> >>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <
>> purplecabbage@gmail.com
>> >>>> >
>> >>>> wrote:
>> >>>>
>> >>>> > What about other requests from the network? Is the server
>> accessible
>> >>>> to
>> >>>> > network peers?
>> >>>> >
>> >>>> > Sent from my iPhone
>> >>>> >
>> >>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>> >>>> > >
>> >>>> > > I'll release the local webserver soon as a plugin, it was just a
>> >>>> proof of
>> >>>> > > concept. It should work with existing Cordova versions as well,
>> but
>> >>>> will
>> >>>> > > not have a way to secure access to the local web server from
>> other
>> >>>> > > (background) running apps.
>> >>>> > >
>> >>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <
>> >>>> agrieve@chromium.org>
>> >>>> > wrote:
>> >>>> > >>
>> >>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>
>> >>>> wrote:
>> >>>> > >>>
>> >>>> > >>> I figure I will write this all up before the official release
>> of
>> >>>> iOS 8
>> >>>> > >> next
>> >>>> > >>> week (probability high) and everyone asking about support.
>> >>>> > >>>
>> >>>> > >>> It has stalled because the WKWebView cannot load files using
>> the
>> >>>> > file://
>> >>>> > >>> protocol since iOS 8 beta 4.
>> >>>> > >>>
>> >>>> > >>> This bug has been filed with Apple weeks ago:
>> >>>> > >>> http://www.openradar.me/radar?id=5839348817723392
>> >>>> > >>>
>> >>>> > >>> I even checked WebKit check-ins if there was any progress, so
>> >>>> far, no:
>> >>>> > >>
>> >>>> >
>> >>>>
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> >>>> > >>> (but it's entirely possible the loading code is in another part
>> >>>> of the
>> >>>> > >>> tree).
>> >>>> > >>>
>> >>>> > >>> The alternative is to run a local web server, which works
>> great.
>> >>>> > However,
>> >>>> > >>> this will open up a can of worms possibly with Apple, I'm not
>> >>>> sure.
>> >>>> > >>
>> >>>> > >> Shaz, did you implement a prototype with a local web server?
>> Would
>> >>>> be
>> >>>> > >> useful to see how the code for this works.
>> >>>> > >>
>> >>>> > >>
>> >>>> > >>
>> >>>> > >>>
>> >>>> > >>> The other interesting tidbit is, with WKWebView, for locally
>> >>>> loaded
>> >>>> > files
>> >>>> > >>> using the file:// protocol, cross-domain restrictions now
>> apply,
>> >>>> unlike
>> >>>> > >>> UIWebView's behaviour. To have the same behaviour as
>> UIWebView, we
>> >>>> > would
>> >>>> > >>> need to proxy these requests (modify xhr.open to go to our
>> proxy,
>> >>>> which
>> >>>> > >>> requires the local web server).
>> >>>> > >>>
>> >>>> > >>> The bridge works great, and plugins work great.
>> >>>> > >>
>> >>>> >
>> >>>>
>> >>>
>> >>>
>> >>
>> >
>>
>
>

Re: [iOS 8] Status of WKWebView work

Posted by Joe Bowser <bo...@gmail.com>.
How can you guarantee that the port will be released when it goes in the
background and not still be bound? That sounds like a main point of
failure.  Would you have it increment to the next port if the port is
bound?

On Wed, Oct 8, 2014 at 12:27 PM, Brian LeRoux <b...@brian.io> wrote:

> I guess if it isn't running in the background then a collision is
> effectively impossible anyhow.
>
> On Wed, Oct 8, 2014 at 11:53 AM, Shazron <sh...@gmail.com> wrote:
>
> > But for 2, there is a chance of port collision still of course, nothing
> we
> > can do about that. The ideal way is to get a random port, but this
> requires
> > more Cordova integration which I am trying to avoid (since we need to
> > specify the URL in the content tag, we need to know the port as well)
> >
> > On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:
> >
> >> 1. Does it run in the background? No. Unless we put up some variables in
> >> Info.plist, which are reserved for certain types of apps (navigation
> apps,
> >> etc)
> >> 2. Local web server port collision? This will be specified in the plugin
> >> in a preference.
> >>
> >> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
> >>
> >>> I have some questions! What happens when you background / does it keep
> >>> running? Since you're running localhost, how do you deal with >1 app
> >>> (random port collision possible?)
> >>>
> >>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
> >>>
> >>>> Not sure if it's only bound to local requests from localhost. Since
> it's
> >>>> for experimental reasons, I'm not too concerned for security. I'm
> still
> >>>> opting for the WKWebView loadFileURL way as the option we use for our
> >>>> users, once that is out.
> >>>>
> >>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <
> purplecabbage@gmail.com
> >>>> >
> >>>> wrote:
> >>>>
> >>>> > What about other requests from the network? Is the server accessible
> >>>> to
> >>>> > network peers?
> >>>> >
> >>>> > Sent from my iPhone
> >>>> >
> >>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
> >>>> > >
> >>>> > > I'll release the local webserver soon as a plugin, it was just a
> >>>> proof of
> >>>> > > concept. It should work with existing Cordova versions as well,
> but
> >>>> will
> >>>> > > not have a way to secure access to the local web server from other
> >>>> > > (background) running apps.
> >>>> > >
> >>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <
> >>>> agrieve@chromium.org>
> >>>> > wrote:
> >>>> > >>
> >>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>
> >>>> wrote:
> >>>> > >>>
> >>>> > >>> I figure I will write this all up before the official release of
> >>>> iOS 8
> >>>> > >> next
> >>>> > >>> week (probability high) and everyone asking about support.
> >>>> > >>>
> >>>> > >>> It has stalled because the WKWebView cannot load files using the
> >>>> > file://
> >>>> > >>> protocol since iOS 8 beta 4.
> >>>> > >>>
> >>>> > >>> This bug has been filed with Apple weeks ago:
> >>>> > >>> http://www.openradar.me/radar?id=5839348817723392
> >>>> > >>>
> >>>> > >>> I even checked WebKit check-ins if there was any progress, so
> >>>> far, no:
> >>>> > >>
> >>>> >
> >>>>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >>>> > >>> (but it's entirely possible the loading code is in another part
> >>>> of the
> >>>> > >>> tree).
> >>>> > >>>
> >>>> > >>> The alternative is to run a local web server, which works great.
> >>>> > However,
> >>>> > >>> this will open up a can of worms possibly with Apple, I'm not
> >>>> sure.
> >>>> > >>
> >>>> > >> Shaz, did you implement a prototype with a local web server?
> Would
> >>>> be
> >>>> > >> useful to see how the code for this works.
> >>>> > >>
> >>>> > >>
> >>>> > >>
> >>>> > >>>
> >>>> > >>> The other interesting tidbit is, with WKWebView, for locally
> >>>> loaded
> >>>> > files
> >>>> > >>> using the file:// protocol, cross-domain restrictions now apply,
> >>>> unlike
> >>>> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView,
> we
> >>>> > would
> >>>> > >>> need to proxy these requests (modify xhr.open to go to our
> proxy,
> >>>> which
> >>>> > >>> requires the local web server).
> >>>> > >>>
> >>>> > >>> The bridge works great, and plugins work great.
> >>>> > >>
> >>>> >
> >>>>
> >>>
> >>>
> >>
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Brian:
The chances are small, but a backgrounded app could access the local web
server of the foregrounded Cordova app. If it knew the port (which it may,
through humans inspecting the config.xml in the .app beforehand)

Joe:
Don't have answers to all of those yet, haven't tested that specifically.
I'll release the plugin (soon), test, and let others test as well.

On Wed, Oct 8, 2014 at 12:27 PM, Brian LeRoux <b...@brian.io> wrote:

> I guess if it isn't running in the background then a collision is
> effectively impossible anyhow.
>
> On Wed, Oct 8, 2014 at 11:53 AM, Shazron <sh...@gmail.com> wrote:
>
>> But for 2, there is a chance of port collision still of course, nothing
>> we can do about that. The ideal way is to get a random port, but this
>> requires more Cordova integration which I am trying to avoid (since we need
>> to specify the URL in the content tag, we need to know the port as well)
>>
>> On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:
>>
>>> 1. Does it run in the background? No. Unless we put up some variables in
>>> Info.plist, which are reserved for certain types of apps (navigation apps,
>>> etc)
>>> 2. Local web server port collision? This will be specified in the plugin
>>> in a preference.
>>>
>>> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
>>>
>>>> I have some questions! What happens when you background / does it keep
>>>> running? Since you're running localhost, how do you deal with >1 app
>>>> (random port collision possible?)
>>>>
>>>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>>>>
>>>>> Not sure if it's only bound to local requests from localhost. Since
>>>>> it's
>>>>> for experimental reasons, I'm not too concerned for security. I'm still
>>>>> opting for the WKWebView loadFileURL way as the option we use for our
>>>>> users, once that is out.
>>>>>
>>>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <
>>>>> purplecabbage@gmail.com>
>>>>> wrote:
>>>>>
>>>>> > What about other requests from the network? Is the server accessible
>>>>> to
>>>>> > network peers?
>>>>> >
>>>>> > Sent from my iPhone
>>>>> >
>>>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>>>>> > >
>>>>> > > I'll release the local webserver soon as a plugin, it was just a
>>>>> proof of
>>>>> > > concept. It should work with existing Cordova versions as well,
>>>>> but will
>>>>> > > not have a way to secure access to the local web server from other
>>>>> > > (background) running apps.
>>>>> > >
>>>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <
>>>>> agrieve@chromium.org>
>>>>> > wrote:
>>>>> > >>
>>>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>
>>>>> wrote:
>>>>> > >>>
>>>>> > >>> I figure I will write this all up before the official release of
>>>>> iOS 8
>>>>> > >> next
>>>>> > >>> week (probability high) and everyone asking about support.
>>>>> > >>>
>>>>> > >>> It has stalled because the WKWebView cannot load files using the
>>>>> > file://
>>>>> > >>> protocol since iOS 8 beta 4.
>>>>> > >>>
>>>>> > >>> This bug has been filed with Apple weeks ago:
>>>>> > >>> http://www.openradar.me/radar?id=5839348817723392
>>>>> > >>>
>>>>> > >>> I even checked WebKit check-ins if there was any progress, so
>>>>> far, no:
>>>>> > >>
>>>>> >
>>>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>>>> > >>> (but it's entirely possible the loading code is in another part
>>>>> of the
>>>>> > >>> tree).
>>>>> > >>>
>>>>> > >>> The alternative is to run a local web server, which works great.
>>>>> > However,
>>>>> > >>> this will open up a can of worms possibly with Apple, I'm not
>>>>> sure.
>>>>> > >>
>>>>> > >> Shaz, did you implement a prototype with a local web server?
>>>>> Would be
>>>>> > >> useful to see how the code for this works.
>>>>> > >>
>>>>> > >>
>>>>> > >>
>>>>> > >>>
>>>>> > >>> The other interesting tidbit is, with WKWebView, for locally
>>>>> loaded
>>>>> > files
>>>>> > >>> using the file:// protocol, cross-domain restrictions now apply,
>>>>> unlike
>>>>> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView,
>>>>> we
>>>>> > would
>>>>> > >>> need to proxy these requests (modify xhr.open to go to our
>>>>> proxy, which
>>>>> > >>> requires the local web server).
>>>>> > >>>
>>>>> > >>> The bridge works great, and plugins work great.
>>>>> > >>
>>>>> >
>>>>>
>>>>
>>>>
>>>
>>
>

Re: [iOS 8] Status of WKWebView work

Posted by Brian LeRoux <b...@brian.io>.
I guess if it isn't running in the background then a collision is
effectively impossible anyhow.

On Wed, Oct 8, 2014 at 11:53 AM, Shazron <sh...@gmail.com> wrote:

> But for 2, there is a chance of port collision still of course, nothing we
> can do about that. The ideal way is to get a random port, but this requires
> more Cordova integration which I am trying to avoid (since we need to
> specify the URL in the content tag, we need to know the port as well)
>
> On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:
>
>> 1. Does it run in the background? No. Unless we put up some variables in
>> Info.plist, which are reserved for certain types of apps (navigation apps,
>> etc)
>> 2. Local web server port collision? This will be specified in the plugin
>> in a preference.
>>
>> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
>>
>>> I have some questions! What happens when you background / does it keep
>>> running? Since you're running localhost, how do you deal with >1 app
>>> (random port collision possible?)
>>>
>>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>>>
>>>> Not sure if it's only bound to local requests from localhost. Since it's
>>>> for experimental reasons, I'm not too concerned for security. I'm still
>>>> opting for the WKWebView loadFileURL way as the option we use for our
>>>> users, once that is out.
>>>>
>>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <purplecabbage@gmail.com
>>>> >
>>>> wrote:
>>>>
>>>> > What about other requests from the network? Is the server accessible
>>>> to
>>>> > network peers?
>>>> >
>>>> > Sent from my iPhone
>>>> >
>>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>>>> > >
>>>> > > I'll release the local webserver soon as a plugin, it was just a
>>>> proof of
>>>> > > concept. It should work with existing Cordova versions as well, but
>>>> will
>>>> > > not have a way to secure access to the local web server from other
>>>> > > (background) running apps.
>>>> > >
>>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <
>>>> agrieve@chromium.org>
>>>> > wrote:
>>>> > >>
>>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>
>>>> wrote:
>>>> > >>>
>>>> > >>> I figure I will write this all up before the official release of
>>>> iOS 8
>>>> > >> next
>>>> > >>> week (probability high) and everyone asking about support.
>>>> > >>>
>>>> > >>> It has stalled because the WKWebView cannot load files using the
>>>> > file://
>>>> > >>> protocol since iOS 8 beta 4.
>>>> > >>>
>>>> > >>> This bug has been filed with Apple weeks ago:
>>>> > >>> http://www.openradar.me/radar?id=5839348817723392
>>>> > >>>
>>>> > >>> I even checked WebKit check-ins if there was any progress, so
>>>> far, no:
>>>> > >>
>>>> >
>>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>>> > >>> (but it's entirely possible the loading code is in another part
>>>> of the
>>>> > >>> tree).
>>>> > >>>
>>>> > >>> The alternative is to run a local web server, which works great.
>>>> > However,
>>>> > >>> this will open up a can of worms possibly with Apple, I'm not
>>>> sure.
>>>> > >>
>>>> > >> Shaz, did you implement a prototype with a local web server? Would
>>>> be
>>>> > >> useful to see how the code for this works.
>>>> > >>
>>>> > >>
>>>> > >>
>>>> > >>>
>>>> > >>> The other interesting tidbit is, with WKWebView, for locally
>>>> loaded
>>>> > files
>>>> > >>> using the file:// protocol, cross-domain restrictions now apply,
>>>> unlike
>>>> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we
>>>> > would
>>>> > >>> need to proxy these requests (modify xhr.open to go to our proxy,
>>>> which
>>>> > >>> requires the local web server).
>>>> > >>>
>>>> > >>> The bridge works great, and plugins work great.
>>>> > >>
>>>> >
>>>>
>>>
>>>
>>
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
But for 2, there is a chance of port collision still of course, nothing we
can do about that. The ideal way is to get a random port, but this requires
more Cordova integration which I am trying to avoid (since we need to
specify the URL in the content tag, we need to know the port as well)

On Wed, Oct 8, 2014 at 11:51 AM, Shazron <sh...@gmail.com> wrote:

> 1. Does it run in the background? No. Unless we put up some variables in
> Info.plist, which are reserved for certain types of apps (navigation apps,
> etc)
> 2. Local web server port collision? This will be specified in the plugin
> in a preference.
>
> On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:
>
>> I have some questions! What happens when you background / does it keep
>> running? Since you're running localhost, how do you deal with >1 app
>> (random port collision possible?)
>>
>> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>>
>>> Not sure if it's only bound to local requests from localhost. Since it's
>>> for experimental reasons, I'm not too concerned for security. I'm still
>>> opting for the WKWebView loadFileURL way as the option we use for our
>>> users, once that is out.
>>>
>>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <pu...@gmail.com>
>>> wrote:
>>>
>>> > What about other requests from the network? Is the server accessible to
>>> > network peers?
>>> >
>>> > Sent from my iPhone
>>> >
>>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>>> > >
>>> > > I'll release the local webserver soon as a plugin, it was just a
>>> proof of
>>> > > concept. It should work with existing Cordova versions as well, but
>>> will
>>> > > not have a way to secure access to the local web server from other
>>> > > (background) running apps.
>>> > >
>>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <agrieve@chromium.org
>>> >
>>> > wrote:
>>> > >>
>>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
>>> > >>>
>>> > >>> I figure I will write this all up before the official release of
>>> iOS 8
>>> > >> next
>>> > >>> week (probability high) and everyone asking about support.
>>> > >>>
>>> > >>> It has stalled because the WKWebView cannot load files using the
>>> > file://
>>> > >>> protocol since iOS 8 beta 4.
>>> > >>>
>>> > >>> This bug has been filed with Apple weeks ago:
>>> > >>> http://www.openradar.me/radar?id=5839348817723392
>>> > >>>
>>> > >>> I even checked WebKit check-ins if there was any progress, so far,
>>> no:
>>> > >>
>>> >
>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>> > >>> (but it's entirely possible the loading code is in another part of
>>> the
>>> > >>> tree).
>>> > >>>
>>> > >>> The alternative is to run a local web server, which works great.
>>> > However,
>>> > >>> this will open up a can of worms possibly with Apple, I'm not sure.
>>> > >>
>>> > >> Shaz, did you implement a prototype with a local web server? Would
>>> be
>>> > >> useful to see how the code for this works.
>>> > >>
>>> > >>
>>> > >>
>>> > >>>
>>> > >>> The other interesting tidbit is, with WKWebView, for locally loaded
>>> > files
>>> > >>> using the file:// protocol, cross-domain restrictions now apply,
>>> unlike
>>> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we
>>> > would
>>> > >>> need to proxy these requests (modify xhr.open to go to our proxy,
>>> which
>>> > >>> requires the local web server).
>>> > >>>
>>> > >>> The bridge works great, and plugins work great.
>>> > >>
>>> >
>>>
>>
>>
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
1. Does it run in the background? No. Unless we put up some variables in
Info.plist, which are reserved for certain types of apps (navigation apps,
etc)
2. Local web server port collision? This will be specified in the plugin in
a preference.

On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux <b...@brian.io> wrote:

> I have some questions! What happens when you background / does it keep
> running? Since you're running localhost, how do you deal with >1 app
> (random port collision possible?)
>
> On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:
>
>> Not sure if it's only bound to local requests from localhost. Since it's
>> for experimental reasons, I'm not too concerned for security. I'm still
>> opting for the WKWebView loadFileURL way as the option we use for our
>> users, once that is out.
>>
>> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <pu...@gmail.com>
>> wrote:
>>
>> > What about other requests from the network? Is the server accessible to
>> > network peers?
>> >
>> > Sent from my iPhone
>> >
>> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
>> > >
>> > > I'll release the local webserver soon as a plugin, it was just a
>> proof of
>> > > concept. It should work with existing Cordova versions as well, but
>> will
>> > > not have a way to secure access to the local web server from other
>> > > (background) running apps.
>> > >
>> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <ag...@chromium.org>
>> > wrote:
>> > >>
>> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
>> > >>>
>> > >>> I figure I will write this all up before the official release of
>> iOS 8
>> > >> next
>> > >>> week (probability high) and everyone asking about support.
>> > >>>
>> > >>> It has stalled because the WKWebView cannot load files using the
>> > file://
>> > >>> protocol since iOS 8 beta 4.
>> > >>>
>> > >>> This bug has been filed with Apple weeks ago:
>> > >>> http://www.openradar.me/radar?id=5839348817723392
>> > >>>
>> > >>> I even checked WebKit check-ins if there was any progress, so far,
>> no:
>> > >>
>> >
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> > >>> (but it's entirely possible the loading code is in another part of
>> the
>> > >>> tree).
>> > >>>
>> > >>> The alternative is to run a local web server, which works great.
>> > However,
>> > >>> this will open up a can of worms possibly with Apple, I'm not sure.
>> > >>
>> > >> Shaz, did you implement a prototype with a local web server? Would be
>> > >> useful to see how the code for this works.
>> > >>
>> > >>
>> > >>
>> > >>>
>> > >>> The other interesting tidbit is, with WKWebView, for locally loaded
>> > files
>> > >>> using the file:// protocol, cross-domain restrictions now apply,
>> unlike
>> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we
>> > would
>> > >>> need to proxy these requests (modify xhr.open to go to our proxy,
>> which
>> > >>> requires the local web server).
>> > >>>
>> > >>> The bridge works great, and plugins work great.
>> > >>
>> >
>>
>
>

Re: [iOS 8] Status of WKWebView work

Posted by Brian LeRoux <b...@brian.io>.
I have some questions! What happens when you background / does it keep
running? Since you're running localhost, how do you deal with >1 app
(random port collision possible?)

On Wed, Oct 8, 2014 at 10:33 AM, Shazron <sh...@gmail.com> wrote:

> Not sure if it's only bound to local requests from localhost. Since it's
> for experimental reasons, I'm not too concerned for security. I'm still
> opting for the WKWebView loadFileURL way as the option we use for our
> users, once that is out.
>
> On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <pu...@gmail.com>
> wrote:
>
> > What about other requests from the network? Is the server accessible to
> > network peers?
> >
> > Sent from my iPhone
> >
> > > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
> > >
> > > I'll release the local webserver soon as a plugin, it was just a proof
> of
> > > concept. It should work with existing Cordova versions as well, but
> will
> > > not have a way to secure access to the local web server from other
> > > (background) running apps.
> > >
> > >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <ag...@chromium.org>
> > wrote:
> > >>
> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
> > >>>
> > >>> I figure I will write this all up before the official release of iOS
> 8
> > >> next
> > >>> week (probability high) and everyone asking about support.
> > >>>
> > >>> It has stalled because the WKWebView cannot load files using the
> > file://
> > >>> protocol since iOS 8 beta 4.
> > >>>
> > >>> This bug has been filed with Apple weeks ago:
> > >>> http://www.openradar.me/radar?id=5839348817723392
> > >>>
> > >>> I even checked WebKit check-ins if there was any progress, so far,
> no:
> > >>
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > >>> (but it's entirely possible the loading code is in another part of
> the
> > >>> tree).
> > >>>
> > >>> The alternative is to run a local web server, which works great.
> > However,
> > >>> this will open up a can of worms possibly with Apple, I'm not sure.
> > >>
> > >> Shaz, did you implement a prototype with a local web server? Would be
> > >> useful to see how the code for this works.
> > >>
> > >>
> > >>
> > >>>
> > >>> The other interesting tidbit is, with WKWebView, for locally loaded
> > files
> > >>> using the file:// protocol, cross-domain restrictions now apply,
> unlike
> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we
> > would
> > >>> need to proxy these requests (modify xhr.open to go to our proxy,
> which
> > >>> requires the local web server).
> > >>>
> > >>> The bridge works great, and plugins work great.
> > >>
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Not sure if it's only bound to local requests from localhost. Since it's
for experimental reasons, I'm not too concerned for security. I'm still
opting for the WKWebView loadFileURL way as the option we use for our
users, once that is out.

On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage <pu...@gmail.com>
wrote:

> What about other requests from the network? Is the server accessible to
> network peers?
>
> Sent from my iPhone
>
> > On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
> >
> > I'll release the local webserver soon as a plugin, it was just a proof of
> > concept. It should work with existing Cordova versions as well, but will
> > not have a way to secure access to the local web server from other
> > (background) running apps.
> >
> >> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <ag...@chromium.org>
> wrote:
> >>
> >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
> >>>
> >>> I figure I will write this all up before the official release of iOS 8
> >> next
> >>> week (probability high) and everyone asking about support.
> >>>
> >>> It has stalled because the WKWebView cannot load files using the
> file://
> >>> protocol since iOS 8 beta 4.
> >>>
> >>> This bug has been filed with Apple weeks ago:
> >>> http://www.openradar.me/radar?id=5839348817723392
> >>>
> >>> I even checked WebKit check-ins if there was any progress, so far, no:
> >>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >>> (but it's entirely possible the loading code is in another part of the
> >>> tree).
> >>>
> >>> The alternative is to run a local web server, which works great.
> However,
> >>> this will open up a can of worms possibly with Apple, I'm not sure.
> >>
> >> Shaz, did you implement a prototype with a local web server? Would be
> >> useful to see how the code for this works.
> >>
> >>
> >>
> >>>
> >>> The other interesting tidbit is, with WKWebView, for locally loaded
> files
> >>> using the file:// protocol, cross-domain restrictions now apply, unlike
> >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we
> would
> >>> need to proxy these requests (modify xhr.open to go to our proxy, which
> >>> requires the local web server).
> >>>
> >>> The bridge works great, and plugins work great.
> >>
>

Re: [iOS 8] Status of WKWebView work

Posted by purplecabbage <pu...@gmail.com>.
What about other requests from the network? Is the server accessible to network peers?

Sent from my iPhone

> On Oct 8, 2014, at 10:26 AM, Shazron <sh...@gmail.com> wrote:
> 
> I'll release the local webserver soon as a plugin, it was just a proof of
> concept. It should work with existing Cordova versions as well, but will
> not have a way to secure access to the local web server from other
> (background) running apps.
> 
>> On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <ag...@chromium.org> wrote:
>> 
>>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
>>> 
>>> I figure I will write this all up before the official release of iOS 8
>> next
>>> week (probability high) and everyone asking about support.
>>> 
>>> It has stalled because the WKWebView cannot load files using the file://
>>> protocol since iOS 8 beta 4.
>>> 
>>> This bug has been filed with Apple weeks ago:
>>> http://www.openradar.me/radar?id=5839348817723392
>>> 
>>> I even checked WebKit check-ins if there was any progress, so far, no:
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>> (but it's entirely possible the loading code is in another part of the
>>> tree).
>>> 
>>> The alternative is to run a local web server, which works great. However,
>>> this will open up a can of worms possibly with Apple, I'm not sure.
>> 
>> Shaz, did you implement a prototype with a local web server? Would be
>> useful to see how the code for this works.
>> 
>> 
>> 
>>> 
>>> The other interesting tidbit is, with WKWebView, for locally loaded files
>>> using the file:// protocol, cross-domain restrictions now apply, unlike
>>> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
>>> need to proxy these requests (modify xhr.open to go to our proxy, which
>>> requires the local web server).
>>> 
>>> The bridge works great, and plugins work great.
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
I'll release the local webserver soon as a plugin, it was just a proof of
concept. It should work with existing Cordova versions as well, but will
not have a way to secure access to the local web server from other
(background) running apps.

On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve <ag...@chromium.org> wrote:

> On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
>
> > I figure I will write this all up before the official release of iOS 8
> next
> > week (probability high) and everyone asking about support.
> >
> > It has stalled because the WKWebView cannot load files using the file://
> > protocol since iOS 8 beta 4.
> >
> > This bug has been filed with Apple weeks ago:
> > http://www.openradar.me/radar?id=5839348817723392
> >
> > I even checked WebKit check-ins if there was any progress, so far, no:
> >
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > (but it's entirely possible the loading code is in another part of the
> > tree).
> >
> > The alternative is to run a local web server, which works great. However,
> > this will open up a can of worms possibly with Apple, I'm not sure.
> >
>
> Shaz, did you implement a prototype with a local web server? Would be
> useful to see how the code for this works.
>
>
>
> >
> > The other interesting tidbit is, with WKWebView, for locally loaded files
> > using the file:// protocol, cross-domain restrictions now apply, unlike
> > UIWebView's behaviour. To have the same behaviour as UIWebView, we would
> > need to proxy these requests (modify xhr.open to go to our proxy, which
> > requires the local web server).
> >
> > The bridge works great, and plugins work great.
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by "Homer, Tony" <to...@intel.com>.
The Intel XDK Legacy iOS container source is not available, but the local web server is based on CocoaHTTPServer:
https://github.com/robbiehanson/CocoaHTTPServer

It sounded like Shazron already has this working – I was just sharing that, based on my experience, adding a local web server will not be a problem with Apple.
That being said, if any help is needed, I’d be glad to help however I can.

From: Andrew Grieve <ag...@chromium.org>>
Date: Wednesday, October 8, 2014 at 11:43 AM
To: Tony Homer <to...@intel.com>>
Cc: dev <de...@cordova.apache.org>>
Subject: Re: [iOS 8] Status of WKWebView work

Tony - is the code for that available anywhere?

On Wed, Oct 8, 2014 at 7:48 AM, Homer, Tony <to...@intel.com>> wrote:
>
>The alternative is to run a local web server, which works great. However,
>this will open up a can of worms possibly with Apple, I'm not sure.
>

FWIW, the Intel XDK Legacy iOS container runs a local web server that all
content is served from.

Lots of apps have been published - no problem with Apple about this
feature.

On 10/8/14, 7:10 AM, "Andrew Grieve" <ag...@chromium.org>> wrote:

>On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com>> wrote:
>
>> I figure I will write this all up before the official release of iOS 8
>>next
>> week (probability high) and everyone asking about support.
>>
>> It has stalled because the WKWebView cannot load files using the file://
>> protocol since iOS 8 beta 4.
>>
>> This bug has been filed with Apple weeks ago:
>> http://www.openradar.me/radar?id=5839348817723392
>>
>> I even checked WebKit check-ins if there was any progress, so far, no:
>>
>>
>>http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?o
>>rder=date&desc=1
>> (but it's entirely possible the loading code is in another part of the
>> tree).
>>
>> The alternative is to run a local web server, which works great.
>>However,
>> this will open up a can of worms possibly with Apple, I'm not sure.
>>
>
>Shaz, did you implement a prototype with a local web server? Would be
>useful to see how the code for this works.
>
>
>
>>
>> The other interesting tidbit is, with WKWebView, for locally loaded
>>files
>> using the file:// protocol, cross-domain restrictions now apply, unlike
>> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
>> need to proxy these requests (modify xhr.open to go to our proxy, which
>> requires the local web server).
>>
>> The bridge works great, and plugins work great.
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org<ma...@cordova.apache.org>
For additional commands, e-mail: dev-help@cordova.apache.org<ma...@cordova.apache.org>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Re: [iOS 8] Status of WKWebView work

Posted by Andrew Grieve <ag...@chromium.org>.
Tony - is the code for that available anywhere?

On Wed, Oct 8, 2014 at 7:48 AM, Homer, Tony <to...@intel.com> wrote:

> >
> >The alternative is to run a local web server, which works great. However,
> >this will open up a can of worms possibly with Apple, I'm not sure.
> >
>
> FWIW, the Intel XDK Legacy iOS container runs a local web server that all
> content is served from.
>
> Lots of apps have been published - no problem with Apple about this
> feature.
>
> On 10/8/14, 7:10 AM, "Andrew Grieve" <ag...@chromium.org> wrote:
>
> >On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
> >
> >> I figure I will write this all up before the official release of iOS 8
> >>next
> >> week (probability high) and everyone asking about support.
> >>
> >> It has stalled because the WKWebView cannot load files using the file://
> >> protocol since iOS 8 beta 4.
> >>
> >> This bug has been filed with Apple weeks ago:
> >> http://www.openradar.me/radar?id=5839348817723392
> >>
> >> I even checked WebKit check-ins if there was any progress, so far, no:
> >>
> >>
> >>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?o
> >>rder=date&desc=1
> >> (but it's entirely possible the loading code is in another part of the
> >> tree).
> >>
> >> The alternative is to run a local web server, which works great.
> >>However,
> >> this will open up a can of worms possibly with Apple, I'm not sure.
> >>
> >
> >Shaz, did you implement a prototype with a local web server? Would be
> >useful to see how the code for this works.
> >
> >
> >
> >>
> >> The other interesting tidbit is, with WKWebView, for locally loaded
> >>files
> >> using the file:// protocol, cross-domain restrictions now apply, unlike
> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
> >> need to proxy these requests (modify xhr.open to go to our proxy, which
> >> requires the local web server).
> >>
> >> The bridge works great, and plugins work great.
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
> For additional commands, e-mail: dev-help@cordova.apache.org
>
>

Re: [iOS 8] Status of WKWebView work

Posted by "Homer, Tony" <to...@intel.com>.
>
>The alternative is to run a local web server, which works great. However,
>this will open up a can of worms possibly with Apple, I'm not sure.
>

FWIW, the Intel XDK Legacy iOS container runs a local web server that all
content is served from.

Lots of apps have been published - no problem with Apple about this
feature.

On 10/8/14, 7:10 AM, "Andrew Grieve" <ag...@chromium.org> wrote:

>On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:
>
>> I figure I will write this all up before the official release of iOS 8
>>next
>> week (probability high) and everyone asking about support.
>>
>> It has stalled because the WKWebView cannot load files using the file://
>> protocol since iOS 8 beta 4.
>>
>> This bug has been filed with Apple weeks ago:
>> http://www.openradar.me/radar?id=5839348817723392
>>
>> I even checked WebKit check-ins if there was any progress, so far, no:
>>
>> 
>>http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?o
>>rder=date&desc=1
>> (but it's entirely possible the loading code is in another part of the
>> tree).
>>
>> The alternative is to run a local web server, which works great.
>>However,
>> this will open up a can of worms possibly with Apple, I'm not sure.
>>
>
>Shaz, did you implement a prototype with a local web server? Would be
>useful to see how the code for this works.
>
>
>
>>
>> The other interesting tidbit is, with WKWebView, for locally loaded
>>files
>> using the file:// protocol, cross-domain restrictions now apply, unlike
>> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
>> need to proxy these requests (modify xhr.open to go to our proxy, which
>> requires the local web server).
>>
>> The bridge works great, and plugins work great.
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Re: [iOS 8] Status of WKWebView work

Posted by Andrew Grieve <ag...@chromium.org>.
On Fri, Sep 5, 2014 at 2:40 PM, Shazron <sh...@gmail.com> wrote:

> I figure I will write this all up before the official release of iOS 8 next
> week (probability high) and everyone asking about support.
>
> It has stalled because the WKWebView cannot load files using the file://
> protocol since iOS 8 beta 4.
>
> This bug has been filed with Apple weeks ago:
> http://www.openradar.me/radar?id=5839348817723392
>
> I even checked WebKit check-ins if there was any progress, so far, no:
>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> (but it's entirely possible the loading code is in another part of the
> tree).
>
> The alternative is to run a local web server, which works great. However,
> this will open up a can of worms possibly with Apple, I'm not sure.
>

Shaz, did you implement a prototype with a local web server? Would be
useful to see how the code for this works.



>
> The other interesting tidbit is, with WKWebView, for locally loaded files
> using the file:// protocol, cross-domain restrictions now apply, unlike
> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
> need to proxy these requests (modify xhr.open to go to our proxy, which
> requires the local web server).
>
> The bridge works great, and plugins work great.
>

Re: [iOS 8] Status of WKWebView work

Posted by tommy-carlos williams <to...@devgeeks.org>.
OK. I think it’s time to start thinking about workarounds.

On 10 September 2014 at 5:50:00, Shazron (shazron@gmail.com) wrote:

Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and  
used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and not by  
design) is still there.  

http://www.openradar.me/radar?id=5839348817723392  

On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:  

> Clarification:  
> When I said "The bridge works great, and plugins work great." this was  
> for loading a html page and plugins using the file:// protocol using  
> WKWebView (as the title of the report implies). The bug I reported was on  
> Device (> iOS beta 4), on Simulator it is *fine* (this info was in the bug  
> report as well).  
>  
> *Nothing* has been done using the local web server and proxy (at least  
> nothing checked in). An implementation on how the proxy works can be seen  
> in the PhoneGap Developer App:  
> https://github.com/phonegap/phonegap-app-developer  
>  
> See CB-7043 for progress on tasks regarding this.  
>  
>  
>  
> On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:  
>  
>> I figure I will write this all up before the official release of iOS 8  
>> next week (probability high) and everyone asking about support.  
>>  
>> It has stalled because the WKWebView cannot load files using the file://  
>> protocol since iOS 8 beta 4.  
>>  
>> This bug has been filed with Apple weeks ago:  
>> http://www.openradar.me/radar?id=5839348817723392  
>>  
>> I even checked WebKit check-ins if there was any progress, so far, no:  
>>  
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1  
>> (but it's entirely possible the loading code is in another part of the  
>> tree).  
>>  
>> The alternative is to run a local web server, which works great. However,  
>> this will open up a can of worms possibly with Apple, I'm not sure.  
>>  
>> The other interesting tidbit is, with WKWebView, for locally loaded files  
>> using the file:// protocol, cross-domain restrictions now apply, unlike  
>> UIWebView's behaviour. To have the same behaviour as UIWebView, we would  
>> need to proxy these requests (modify xhr.open to go to our proxy, which  
>> requires the local web server).  
>>  
>> The bridge works great, and plugins work great.  
>>  
>>  
>>  
>>  
>>  
>  


Re: [iOS 8] Status of WKWebView work

Posted by julio cesar sanchez <jc...@gmail.com>.
I had "news" from apple, they closed my bug repport because it was
duplicated (obviously, I copied shazron bug report)

Re: [iOS 8] Status of WKWebView work

Posted by Kerri Shotts <ke...@photokandy.com>.
Nooooooooooooooooooooooooooooooooooooooooooooooooooooooo! :-( I guess we'll
have to hope for 8.0.1 or 8.1?


___________________________________
*Kerri Shotts*
photoKandy Studios, LLC

On the Web: http://www.photokandy.com/

*Social Media:*
          Twitter: @photokandy, http://twitter.com/photokandy
​          App.net: @photokandy, https://alpha.app.net/photokandy
          Google+: https://plus.google.com/110429856422449500918/posts
          Facebook: https://www.facebook.com/photoKandy
          Behance: https://www.behance.net/kerrishotts
          Tumblr: http://photokandy.tumblr.com/
​          Github: https://github.com/kerrishotts
                       https://github.com/organizations/photokandyStudios
          CoderWall: https://coderwall.com/kerrishotts
​          Stack Overflow: ​
http://stackoverflow.com/users/741043/kerri-shotts


*Apps on the Apple Store:*
​          Greek Interlinear Bible 1.3​:

https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828

*Books:*
​          PhoneGap 3.x Mobile Application Development Hotshot:
          http://www.photokandy.com/books/phonegap-3-x-hotshot/

          PhoneGap 2.x Mobile Application Development Hotshot:
          http://www.photokandy.com/books/phonegap-2-x-hotshot/

          Instant PhoneGap Social Application Development:​
          http://www.photokandy.com/books/instant-social-app/



On Tue, Sep 9, 2014 at 3:33 PM, Andrew Grieve <ag...@chromium.org> wrote:

> :(
>
> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?
>
> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org> wrote:
> > That's pretty disappointing.
> >
> > Especially with not even a comment from apple.
> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> >
> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5
> and
> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and
> not by
> >> design) is still there.
> >>
> >> http://www.openradar.me/radar?id=5839348817723392
> >>
> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
> >>
> >> > Clarification:
> >> > When I said "The bridge works great, and plugins work great." this was
> >> > for loading a html page and plugins using the file:// protocol using
> >> > WKWebView (as the title of the report implies). The bug I reported
> was on
> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in the
> >> bug
> >> > report as well).
> >> >
> >> > *Nothing* has been done using the local web server and proxy (at least
> >> > nothing checked in). An implementation on how the proxy works can be
> seen
> >> > in the PhoneGap Developer App:
> >> > https://github.com/phonegap/phonegap-app-developer
> >> >
> >> > See CB-7043 for progress on tasks regarding this.
> >> >
> >> >
> >> >
> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
> >> >
> >> >> I figure I will write this all up before the official release of iOS
> 8
> >> >> next week (probability high) and everyone asking about support.
> >> >>
> >> >> It has stalled because the WKWebView cannot load files using the
> file://
> >> >> protocol since iOS 8 beta 4.
> >> >>
> >> >> This bug has been filed with Apple weeks ago:
> >> >> http://www.openradar.me/radar?id=5839348817723392
> >> >>
> >> >> I even checked WebKit check-ins if there was any progress, so far,
> no:
> >> >>
> >> >>
> >>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >> >> (but it's entirely possible the loading code is in another part of
> the
> >> >> tree).
> >> >>
> >> >> The alternative is to run a local web server, which works great.
> >> However,
> >> >> this will open up a can of worms possibly with Apple, I'm not sure.
> >> >>
> >> >> The other interesting tidbit is, with WKWebView, for locally loaded
> >> files
> >> >> using the file:// protocol, cross-domain restrictions now apply,
> unlike
> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we
> would
> >> >> need to proxy these requests (modify xhr.open to go to our proxy,
> which
> >> >> requires the local web server).
> >> >>
> >> >> The bridge works great, and plugins work great.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >>
>

Re: [iOS 8] Status of WKWebView work

Posted by Michal Mocny <mm...@chromium.org>.
On Wed, Sep 10, 2014 at 4:11 AM, Ross Gerbasi <rg...@gmail.com> wrote:

> Here are the results of some tests on iOS8, hopefully they will be useful
> to someone! :)
> I need to do some more useful tests on DOM related stuff as it was
> mentioned here already JS speed is not usually the bottleneck in Cordova
> apps.  Unless you're doing crazy crypto like some people :)
>
> *@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe I am
> not enabling something I need to on the native side? For me HTML5 Test is
> only showing IndexedDB for Safari and WKWebView. As you can see I am
> getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
>
>
> *Tests run on an iPod Touch 5th Generation running iOS8 GA*
>
> iPod Touch iOS 8 *Safari*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> Safari/600.1.4
> Sunspider - 1825ms Overall
> HMTL5 Test - 440/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - Yes
> - Objectstore ArrayBuffer Support - Yes
>
> iPod Touch iOS 8 *HomeScreen*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 1801.0ms Overall
> HTML5 Test - 427/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - No
> - Objectstore ArrayBuffer Support - No
>
>
> iPod Touch iOS 8 *WKWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 1822.8ms Overall
> HTML5 Test - 438/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - Yes
> - Objectstore ArrayBuffer Support - No
>
>
> iPod Touch iOS 8 *UIWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 7114.6ms Overall
> HTML5 Test - 427/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - No
> - Objectstore ArrayBuffer Support - No
>
>
> *iOS 8 Notes*
> - Seamless iFrame was removed compared to iOS 7.1.2
> - IndexedDB is only supported in Safari & WKWebView App
> - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
>
According to your notes above, its not available in WKWebView.  Which is
correct?  (I'm not sure what this refers to anyway, but curious)


> - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
> - WKWebView cannot load local files (issue for Cordova/Phonegap/Offline
> Solutions)
>         - No UserAgent difference between UIWebView and WKWebView.
>
Thats interesting!


>
>
> On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <to...@devgeeks.org>
> wrote:
>
> > Generally speaking, JS performance is not a problem for most iOS Cordova
> > apps. Certainly I never had a problem until recently.
> >
> > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1] that
> > works pretty damn good on Android, decently on BB10 and even pretty good
> on
> > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
> >
> > And that’s only using 1000 rounds of PBKDF2 for SRP authentication (less
> > than we would like).
> >
> > Luckily, my use case is not the norm… but it does mean I am making apps
> > that are unusable on iOS, which makes me sad.
> >
> > 1. https://crypton.io
> >
> > On 10 September 2014 at 10:20:21, Andrew Grieve (agrieve@chromium.org)
> > wrote:
> >
> > That's great news.
> >
> > JS execution speed honestly hasn't really been a problem for Cordova
> > apps that I've heard of anyways.
> >
> > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > > Some interesting findings - iOS UIWebView and WKWebView have the same
> > > user-agent value, and both score 440 on html5test.com.
> > >
> > > Which makes me think they use the same engine (renderer and js), but
> > > UIWebView has nitro turned off. WKWebView seems to be about 4x faster
> on
> > > the Sunspider benchmark.
> > >
> > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
> > >
> > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
> > >> supports indexedDB
> > >> Full results: http://html5te.st/f16d892273bbe5bd
> > >>
> > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>
> > >> wrote:
> > >>
> > >>> :(
> > >>>
> > >>> Hopefully UIWebView will still get some updates though? E.g.
> IndexedDb?
> > >>>
> > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>
> > >>> wrote:
> > >>> > That's pretty disappointing.
> > >>> >
> > >>> > Especially with not even a comment from apple.
> > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> > >>> >
> > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an
> iPhone
> > 5
> > >>> and
> > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug
> and
> > >>> not by
> > >>> >> design) is still there.
> > >>> >>
> > >>> >> http://www.openradar.me/radar?id=5839348817723392
> > >>> >>
> > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com>
> wrote:
> > >>> >>
> > >>> >> > Clarification:
> > >>> >> > When I said "The bridge works great, and plugins work great."
> this
> > >>> was
> > >>> >> > for loading a html page and plugins using the file:// protocol
> > using
> > >>> >> > WKWebView (as the title of the report implies). The bug I
> reported
> > >>> was on
> > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was
> in
> > >>> the
> > >>> >> bug
> > >>> >> > report as well).
> > >>> >> >
> > >>> >> > *Nothing* has been done using the local web server and proxy (at
> > >>> least
> > >>> >> > nothing checked in). An implementation on how the proxy works
> can
> > be
> > >>> seen
> > >>> >> > in the PhoneGap Developer App:
> > >>> >> > https://github.com/phonegap/phonegap-app-developer
> > >>> >> >
> > >>> >> > See CB-7043 for progress on tasks regarding this.
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com>
> > wrote:
> > >>> >> >
> > >>> >> >> I figure I will write this all up before the official release
> of
> > >>> iOS 8
> > >>> >> >> next week (probability high) and everyone asking about support.
> > >>> >> >>
> > >>> >> >> It has stalled because the WKWebView cannot load files using
> the
> > >>> file://
> > >>> >> >> protocol since iOS 8 beta 4.
> > >>> >> >>
> > >>> >> >> This bug has been filed with Apple weeks ago:
> > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> > >>> >> >>
> > >>> >> >> I even checked WebKit check-ins if there was any progress, so
> > far,
> > >>> no:
> > >>> >> >>
> > >>> >> >>
> > >>> >>
> > >>>
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > >>> >> >> (but it's entirely possible the loading code is in another part
> > of
> > >>> the
> > >>> >> >> tree).
> > >>> >> >>
> > >>> >> >> The alternative is to run a local web server, which works
> great.
> > >>> >> However,
> > >>> >> >> this will open up a can of worms possibly with Apple, I'm not
> > sure.
> > >>> >> >>
> > >>> >> >> The other interesting tidbit is, with WKWebView, for locally
> > loaded
> > >>> >> files
> > >>> >> >> using the file:// protocol, cross-domain restrictions now
> apply,
> > >>> unlike
> > >>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView,
> > we
> > >>> would
> > >>> >> >> need to proxy these requests (modify xhr.open to go to our
> proxy,
> > >>> which
> > >>> >> >> requires the local web server).
> > >>> >> >>
> > >>> >> >> The bridge works great, and plugins work great.
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >
> > >>> >>
> > >>>
> > >>
> > >>
> >
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Ross Gerbasi <rg...@gmail.com>.
Also for those interested in Browser features this is what we gained from
iOS 7 Safari to iOS 8 Safari. I have not had a chance to test all these new
features in UIWebView or Homescreen yet to confirm they all have them. I
only know indexedDB for now is only working in WKWebView and Safari.

- HTML/SVG Blending
- CSS background-blend-mode
- CSS Shapes Level 1
- WebGL 3D Canvas Graphics
- HTML Templates
- Promises
- Navigation Timing API
- Srcset attribute
- IndexedDB
- High Resolution Timing API
- SPDY network protocol
- Animated PNG Support
- SVG Fragment identifiers
- Text Decoration color/line CSS Support

Future focused we can look at things supported in iOS8 and Android 4.4+
like:
- HTML Templates - Big win for things like polymer or Web Component
Frameworks
- IndexedDB - Replacing sqlite
- High Resolution / Navigation Timing API - Performance testing and
benchmarking

And looking even further ahead we can see things that are in iOS8 and
Chrome for Android
- SVG Fragment IDs - This allows for SVG sprite sheets or image
collections. Good for icons and gaming
- Srcset attribute - Simple standard way to deal with higher DPI images
- CSS Shapes Level 1 - Allow for much nicer magazine style text layouts.
- WebGL 3d Canvas Graphics - Hardware accelerated 3d goodness

On Wed, Sep 10, 2014 at 2:01 PM, Ross Gerbasi <rg...@gmail.com> wrote:

> Yeah sorry :( I mixed those up there, it got pretty late when I was
> writing all this up.
>
> OS Arraybuffer is support in the WKWebView and Safari, it is not available
> in a HomeScreen app or the UIWebView. According to HTML5 Test running in
> those environments.
>
> Apologies for the confusion.
> -ross
>
> On Wed, Sep 10, 2014 at 12:12 PM, Carlos Santana <cs...@gmail.com>
> wrote:
>
>> Ross can you clarify your results for Objectstore ArrayBuffer?
>>
>> Notes:
>> - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
>>
>> iPod Touch iOS 8 *Safari*
>> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
>> AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
>> - Objectstore ArrayBuffer Support - *Yes*
>>
>> iPod Touch iOS 8 *HomeScreen*
>> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
>> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> - Objectstore ArrayBuffer Support - *No*
>>
>>
>> iPod Touch iOS 8 *WKWebView*
>> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
>> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> - Objectstore ArrayBuffer Support - *No*
>>
>>
>> iPod Touch iOS 8 *UIWebView*
>> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
>> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> - Objectstore ArrayBuffer Support - *No*
>>
>> On Wed, Sep 10, 2014 at 12:14 PM, Ross Gerbasi <rg...@gmail.com>
>> wrote:
>>
>> > If you have a chance can you re-run the tests and make sure I didn't
>> screw
>> > anything up? :)
>> >
>> > -ross
>> >
>> > On Wed, Sep 10, 2014 at 11:04 AM, Shazron <sh...@gmail.com> wrote:
>> >
>> > > Ross - shoot. Arrgh I may have mixed up my test apps :( I should
>> emblazon
>> > > "WKWebView" or "UIWebView" at the start of the app. Thank goodness for
>> > peer
>> > > review...
>> > >
>> > > On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi <rg...@gmail.com>
>> > wrote:
>> > >
>> > > > Here are the results of some tests on iOS8, hopefully they will be
>> > useful
>> > > > to someone! :)
>> > > > I need to do some more useful tests on DOM related stuff as it was
>> > > > mentioned here already JS speed is not usually the bottleneck in
>> > Cordova
>> > > > apps.  Unless you're doing crazy crypto like some people :)
>> > > >
>> > > > *@Shazron:* I am not seeing IndexedDB support in UIWebView but
>> maybe I
>> > am
>> > > > not enabling something I need to on the native side? For me HTML5
>> Test
>> > is
>> > > > only showing IndexedDB for Safari and WKWebView. As you can see I am
>> > > > getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
>> > > >
>> > > >
>> > > > *Tests run on an iPod Touch 5th Generation running iOS8 GA*
>> > > >
>> > > > iPod Touch iOS 8 *Safari*
>> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS
>> X)
>> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
>> > > > Safari/600.1.4
>> > > > Sunspider - 1825ms Overall
>> > > > HMTL5 Test - 440/555
>> > > > - Seamless iFrame - No
>> > > > - 2D Graphics Path Support - Yes
>> > > > - Web GL 3D Graphics - Yes
>> > > > - IndexedDB - Yes
>> > > > - Objectstore ArrayBuffer Support - Yes
>> > > >
>> > > > iPod Touch iOS 8 *HomeScreen*
>> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS
>> X)
>> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> > > > SunSpider - 1801.0ms Overall
>> > > > HTML5 Test - 427/555
>> > > > - Seamless iFrame - No
>> > > > - 2D Graphics Path Support - Yes
>> > > > - Web GL 3D Graphics - Yes
>> > > > - IndexedDB - No
>> > > > - Objectstore ArrayBuffer Support - No
>> > > >
>> > > >
>> > > > iPod Touch iOS 8 *WKWebView*
>> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS
>> X)
>> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> > > > SunSpider - 1822.8ms Overall
>> > > > HTML5 Test - 438/555
>> > > > - Seamless iFrame - No
>> > > > - 2D Graphics Path Support - Yes
>> > > > - Web GL 3D Graphics - Yes
>> > > > - IndexedDB - Yes
>> > > > - Objectstore ArrayBuffer Support - No
>> > > >
>> > > >
>> > > > iPod Touch iOS 8 *UIWebView*
>> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS
>> X)
>> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
>> > > > SunSpider - 7114.6ms Overall
>> > > > HTML5 Test - 427/555
>> > > > - Seamless iFrame - No
>> > > > - 2D Graphics Path Support - Yes
>> > > > - Web GL 3D Graphics - Yes
>> > > > - IndexedDB - No
>> > > > - Objectstore ArrayBuffer Support - No
>> > > >
>> > > >
>> > > > *iOS 8 Notes*
>> > > > - Seamless iFrame was removed compared to iOS 7.1.2
>> > > > - IndexedDB is only supported in Safari & WKWebView App
>> > > > - Objectstore ArrayBuffer is only supported in Safari & WKWebView
>> App
>> > > > - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
>> > > > - WKWebView cannot load local files (issue for
>> Cordova/Phonegap/Offline
>> > > > Solutions)
>> > > >         - No UserAgent difference between UIWebView and WKWebView.
>> > > >
>> > > >
>> > > > On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <
>> > > tommy@devgeeks.org>
>> > > > wrote:
>> > > >
>> > > > > Generally speaking, JS performance is not a problem for most iOS
>> > > Cordova
>> > > > > apps. Certainly I never had a problem until recently.
>> > > > >
>> > > > > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1]
>> > that
>> > > > > works pretty damn good on Android, decently on BB10 and even
>> pretty
>> > > good
>> > > > on
>> > > > > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
>> > > > >
>> > > > > And that’s only using 1000 rounds of PBKDF2 for SRP authentication
>> > > (less
>> > > > > than we would like).
>> > > > >
>> > > > > Luckily, my use case is not the norm… but it does mean I am making
>> > apps
>> > > > > that are unusable on iOS, which makes me sad.
>> > > > >
>> > > > > 1. https://crypton.io
>> > > > >
>> > > > > On 10 September 2014 at 10:20:21, Andrew Grieve (
>> > agrieve@chromium.org)
>> > > > > wrote:
>> > > > >
>> > > > > That's great news.
>> > > > >
>> > > > > JS execution speed honestly hasn't really been a problem for
>> Cordova
>> > > > > apps that I've heard of anyways.
>> > > > >
>> > > > > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com>
>> wrote:
>> > > > > > Some interesting findings - iOS UIWebView and WKWebView have the
>> > same
>> > > > > > user-agent value, and both score 440 on html5test.com.
>> > > > > >
>> > > > > > Which makes me think they use the same engine (renderer and js),
>> > but
>> > > > > > UIWebView has nitro turned off. WKWebView seems to be about 4x
>> > faster
>> > > > on
>> > > > > > the Sunspider benchmark.
>> > > > > >
>> > > > > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com>
>> wrote:
>> > > > > >
>> > > > > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and
>> yes
>> > it
>> > > > > >> supports indexedDB
>> > > > > >> Full results: http://html5te.st/f16d892273bbe5bd
>> > > > > >>
>> > > > > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <
>> > agrieve@chromium.org
>> > > >
>> > > > > >> wrote:
>> > > > > >>
>> > > > > >>> :(
>> > > > > >>>
>> > > > > >>> Hopefully UIWebView will still get some updates though? E.g.
>> > > > IndexedDb?
>> > > > > >>>
>> > > > > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <
>> > tommy@devgeeks.org
>> > > >
>> > > > > >>> wrote:
>> > > > > >>> > That's pretty disappointing.
>> > > > > >>> >
>> > > > > >>> > Especially with not even a comment from apple.
>> > > > > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
>> > > > > >>> >
>> > > > > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on
>> an
>> > > > iPhone
>> > > > > 5
>> > > > > >>> and
>> > > > > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is
>> a
>> > bug
>> > > > and
>> > > > > >>> not by
>> > > > > >>> >> design) is still there.
>> > > > > >>> >>
>> > > > > >>> >> http://www.openradar.me/radar?id=5839348817723392
>> > > > > >>> >>
>> > > > > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <
>> shazron@gmail.com>
>> > > > wrote:
>> > > > > >>> >>
>> > > > > >>> >> > Clarification:
>> > > > > >>> >> > When I said "The bridge works great, and plugins work
>> > great."
>> > > > this
>> > > > > >>> was
>> > > > > >>> >> > for loading a html page and plugins using the file://
>> > protocol
>> > > > > using
>> > > > > >>> >> > WKWebView (as the title of the report implies). The bug I
>> > > > reported
>> > > > > >>> was on
>> > > > > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this
>> info
>> > > was
>> > > > in
>> > > > > >>> the
>> > > > > >>> >> bug
>> > > > > >>> >> > report as well).
>> > > > > >>> >> >
>> > > > > >>> >> > *Nothing* has been done using the local web server and
>> proxy
>> > > (at
>> > > > > >>> least
>> > > > > >>> >> > nothing checked in). An implementation on how the proxy
>> > works
>> > > > can
>> > > > > be
>> > > > > >>> seen
>> > > > > >>> >> > in the PhoneGap Developer App:
>> > > > > >>> >> > https://github.com/phonegap/phonegap-app-developer
>> > > > > >>> >> >
>> > > > > >>> >> > See CB-7043 for progress on tasks regarding this.
>> > > > > >>> >> >
>> > > > > >>> >> >
>> > > > > >>> >> >
>> > > > > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <
>> shazron@gmail.com
>> > >
>> > > > > wrote:
>> > > > > >>> >> >
>> > > > > >>> >> >> I figure I will write this all up before the official
>> > release
>> > > > of
>> > > > > >>> iOS 8
>> > > > > >>> >> >> next week (probability high) and everyone asking about
>> > > support.
>> > > > > >>> >> >>
>> > > > > >>> >> >> It has stalled because the WKWebView cannot load files
>> > using
>> > > > the
>> > > > > >>> file://
>> > > > > >>> >> >> protocol since iOS 8 beta 4.
>> > > > > >>> >> >>
>> > > > > >>> >> >> This bug has been filed with Apple weeks ago:
>> > > > > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
>> > > > > >>> >> >>
>> > > > > >>> >> >> I even checked WebKit check-ins if there was any
>> progress,
>> > so
>> > > > > far,
>> > > > > >>> no:
>> > > > > >>> >> >>
>> > > > > >>> >> >>
>> > > > > >>> >>
>> > > > > >>>
>> > > > >
>> > > >
>> > >
>> >
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> > > > > >>> >> >> (but it's entirely possible the loading code is in
>> another
>> > > part
>> > > > > of
>> > > > > >>> the
>> > > > > >>> >> >> tree).
>> > > > > >>> >> >>
>> > > > > >>> >> >> The alternative is to run a local web server, which
>> works
>> > > > great.
>> > > > > >>> >> However,
>> > > > > >>> >> >> this will open up a can of worms possibly with Apple,
>> I'm
>> > not
>> > > > > sure.
>> > > > > >>> >> >>
>> > > > > >>> >> >> The other interesting tidbit is, with WKWebView, for
>> > locally
>> > > > > loaded
>> > > > > >>> >> files
>> > > > > >>> >> >> using the file:// protocol, cross-domain restrictions
>> now
>> > > > apply,
>> > > > > >>> unlike
>> > > > > >>> >> >> UIWebView's behaviour. To have the same behaviour as
>> > > UIWebView,
>> > > > > we
>> > > > > >>> would
>> > > > > >>> >> >> need to proxy these requests (modify xhr.open to go to
>> our
>> > > > proxy,
>> > > > > >>> which
>> > > > > >>> >> >> requires the local web server).
>> > > > > >>> >> >>
>> > > > > >>> >> >> The bridge works great, and plugins work great.
>> > > > > >>> >> >>
>> > > > > >>> >> >>
>> > > > > >>> >> >>
>> > > > > >>> >> >>
>> > > > > >>> >> >>
>> > > > > >>> >> >
>> > > > > >>> >>
>> > > > > >>>
>> > > > > >>
>> > > > > >>
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>>
>>
>> --
>> Carlos Santana
>> <cs...@gmail.com>
>>
>
>

Re: [iOS 8] Status of WKWebView work

Posted by Ross Gerbasi <rg...@gmail.com>.
Yeah sorry :( I mixed those up there, it got pretty late when I was writing
all this up.

OS Arraybuffer is support in the WKWebView and Safari, it is not available
in a HomeScreen app or the UIWebView. According to HTML5 Test running in
those environments.

Apologies for the confusion.
-ross

On Wed, Sep 10, 2014 at 12:12 PM, Carlos Santana <cs...@gmail.com>
wrote:

> Ross can you clarify your results for Objectstore ArrayBuffer?
>
> Notes:
> - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
>
> iPod Touch iOS 8 *Safari*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> - Objectstore ArrayBuffer Support - *Yes*
>
> iPod Touch iOS 8 *HomeScreen*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> - Objectstore ArrayBuffer Support - *No*
>
>
> iPod Touch iOS 8 *WKWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> - Objectstore ArrayBuffer Support - *No*
>
>
> iPod Touch iOS 8 *UIWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> - Objectstore ArrayBuffer Support - *No*
>
> On Wed, Sep 10, 2014 at 12:14 PM, Ross Gerbasi <rg...@gmail.com> wrote:
>
> > If you have a chance can you re-run the tests and make sure I didn't
> screw
> > anything up? :)
> >
> > -ross
> >
> > On Wed, Sep 10, 2014 at 11:04 AM, Shazron <sh...@gmail.com> wrote:
> >
> > > Ross - shoot. Arrgh I may have mixed up my test apps :( I should
> emblazon
> > > "WKWebView" or "UIWebView" at the start of the app. Thank goodness for
> > peer
> > > review...
> > >
> > > On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi <rg...@gmail.com>
> > wrote:
> > >
> > > > Here are the results of some tests on iOS8, hopefully they will be
> > useful
> > > > to someone! :)
> > > > I need to do some more useful tests on DOM related stuff as it was
> > > > mentioned here already JS speed is not usually the bottleneck in
> > Cordova
> > > > apps.  Unless you're doing crazy crypto like some people :)
> > > >
> > > > *@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe
> I
> > am
> > > > not enabling something I need to on the native side? For me HTML5
> Test
> > is
> > > > only showing IndexedDB for Safari and WKWebView. As you can see I am
> > > > getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
> > > >
> > > >
> > > > *Tests run on an iPod Touch 5th Generation running iOS8 GA*
> > > >
> > > > iPod Touch iOS 8 *Safari*
> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> > > > Safari/600.1.4
> > > > Sunspider - 1825ms Overall
> > > > HMTL5 Test - 440/555
> > > > - Seamless iFrame - No
> > > > - 2D Graphics Path Support - Yes
> > > > - Web GL 3D Graphics - Yes
> > > > - IndexedDB - Yes
> > > > - Objectstore ArrayBuffer Support - Yes
> > > >
> > > > iPod Touch iOS 8 *HomeScreen*
> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > > SunSpider - 1801.0ms Overall
> > > > HTML5 Test - 427/555
> > > > - Seamless iFrame - No
> > > > - 2D Graphics Path Support - Yes
> > > > - Web GL 3D Graphics - Yes
> > > > - IndexedDB - No
> > > > - Objectstore ArrayBuffer Support - No
> > > >
> > > >
> > > > iPod Touch iOS 8 *WKWebView*
> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > > SunSpider - 1822.8ms Overall
> > > > HTML5 Test - 438/555
> > > > - Seamless iFrame - No
> > > > - 2D Graphics Path Support - Yes
> > > > - Web GL 3D Graphics - Yes
> > > > - IndexedDB - Yes
> > > > - Objectstore ArrayBuffer Support - No
> > > >
> > > >
> > > > iPod Touch iOS 8 *UIWebView*
> > > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > > SunSpider - 7114.6ms Overall
> > > > HTML5 Test - 427/555
> > > > - Seamless iFrame - No
> > > > - 2D Graphics Path Support - Yes
> > > > - Web GL 3D Graphics - Yes
> > > > - IndexedDB - No
> > > > - Objectstore ArrayBuffer Support - No
> > > >
> > > >
> > > > *iOS 8 Notes*
> > > > - Seamless iFrame was removed compared to iOS 7.1.2
> > > > - IndexedDB is only supported in Safari & WKWebView App
> > > > - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
> > > > - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
> > > > - WKWebView cannot load local files (issue for
> Cordova/Phonegap/Offline
> > > > Solutions)
> > > >         - No UserAgent difference between UIWebView and WKWebView.
> > > >
> > > >
> > > > On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <
> > > tommy@devgeeks.org>
> > > > wrote:
> > > >
> > > > > Generally speaking, JS performance is not a problem for most iOS
> > > Cordova
> > > > > apps. Certainly I never had a problem until recently.
> > > > >
> > > > > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1]
> > that
> > > > > works pretty damn good on Android, decently on BB10 and even pretty
> > > good
> > > > on
> > > > > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
> > > > >
> > > > > And that’s only using 1000 rounds of PBKDF2 for SRP authentication
> > > (less
> > > > > than we would like).
> > > > >
> > > > > Luckily, my use case is not the norm… but it does mean I am making
> > apps
> > > > > that are unusable on iOS, which makes me sad.
> > > > >
> > > > > 1. https://crypton.io
> > > > >
> > > > > On 10 September 2014 at 10:20:21, Andrew Grieve (
> > agrieve@chromium.org)
> > > > > wrote:
> > > > >
> > > > > That's great news.
> > > > >
> > > > > JS execution speed honestly hasn't really been a problem for
> Cordova
> > > > > apps that I've heard of anyways.
> > > > >
> > > > > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > > > > > Some interesting findings - iOS UIWebView and WKWebView have the
> > same
> > > > > > user-agent value, and both score 440 on html5test.com.
> > > > > >
> > > > > > Which makes me think they use the same engine (renderer and js),
> > but
> > > > > > UIWebView has nitro turned off. WKWebView seems to be about 4x
> > faster
> > > > on
> > > > > > the Sunspider benchmark.
> > > > > >
> > > > > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com>
> wrote:
> > > > > >
> > > > > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes
> > it
> > > > > >> supports indexedDB
> > > > > >> Full results: http://html5te.st/f16d892273bbe5bd
> > > > > >>
> > > > > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <
> > agrieve@chromium.org
> > > >
> > > > > >> wrote:
> > > > > >>
> > > > > >>> :(
> > > > > >>>
> > > > > >>> Hopefully UIWebView will still get some updates though? E.g.
> > > > IndexedDb?
> > > > > >>>
> > > > > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <
> > tommy@devgeeks.org
> > > >
> > > > > >>> wrote:
> > > > > >>> > That's pretty disappointing.
> > > > > >>> >
> > > > > >>> > Especially with not even a comment from apple.
> > > > > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> > > > > >>> >
> > > > > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an
> > > > iPhone
> > > > > 5
> > > > > >>> and
> > > > > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a
> > bug
> > > > and
> > > > > >>> not by
> > > > > >>> >> design) is still there.
> > > > > >>> >>
> > > > > >>> >> http://www.openradar.me/radar?id=5839348817723392
> > > > > >>> >>
> > > > > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <shazron@gmail.com
> >
> > > > wrote:
> > > > > >>> >>
> > > > > >>> >> > Clarification:
> > > > > >>> >> > When I said "The bridge works great, and plugins work
> > great."
> > > > this
> > > > > >>> was
> > > > > >>> >> > for loading a html page and plugins using the file://
> > protocol
> > > > > using
> > > > > >>> >> > WKWebView (as the title of the report implies). The bug I
> > > > reported
> > > > > >>> was on
> > > > > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this
> info
> > > was
> > > > in
> > > > > >>> the
> > > > > >>> >> bug
> > > > > >>> >> > report as well).
> > > > > >>> >> >
> > > > > >>> >> > *Nothing* has been done using the local web server and
> proxy
> > > (at
> > > > > >>> least
> > > > > >>> >> > nothing checked in). An implementation on how the proxy
> > works
> > > > can
> > > > > be
> > > > > >>> seen
> > > > > >>> >> > in the PhoneGap Developer App:
> > > > > >>> >> > https://github.com/phonegap/phonegap-app-developer
> > > > > >>> >> >
> > > > > >>> >> > See CB-7043 for progress on tasks regarding this.
> > > > > >>> >> >
> > > > > >>> >> >
> > > > > >>> >> >
> > > > > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <
> shazron@gmail.com
> > >
> > > > > wrote:
> > > > > >>> >> >
> > > > > >>> >> >> I figure I will write this all up before the official
> > release
> > > > of
> > > > > >>> iOS 8
> > > > > >>> >> >> next week (probability high) and everyone asking about
> > > support.
> > > > > >>> >> >>
> > > > > >>> >> >> It has stalled because the WKWebView cannot load files
> > using
> > > > the
> > > > > >>> file://
> > > > > >>> >> >> protocol since iOS 8 beta 4.
> > > > > >>> >> >>
> > > > > >>> >> >> This bug has been filed with Apple weeks ago:
> > > > > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> > > > > >>> >> >>
> > > > > >>> >> >> I even checked WebKit check-ins if there was any
> progress,
> > so
> > > > > far,
> > > > > >>> no:
> > > > > >>> >> >>
> > > > > >>> >> >>
> > > > > >>> >>
> > > > > >>>
> > > > >
> > > >
> > >
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > > > > >>> >> >> (but it's entirely possible the loading code is in
> another
> > > part
> > > > > of
> > > > > >>> the
> > > > > >>> >> >> tree).
> > > > > >>> >> >>
> > > > > >>> >> >> The alternative is to run a local web server, which works
> > > > great.
> > > > > >>> >> However,
> > > > > >>> >> >> this will open up a can of worms possibly with Apple, I'm
> > not
> > > > > sure.
> > > > > >>> >> >>
> > > > > >>> >> >> The other interesting tidbit is, with WKWebView, for
> > locally
> > > > > loaded
> > > > > >>> >> files
> > > > > >>> >> >> using the file:// protocol, cross-domain restrictions now
> > > > apply,
> > > > > >>> unlike
> > > > > >>> >> >> UIWebView's behaviour. To have the same behaviour as
> > > UIWebView,
> > > > > we
> > > > > >>> would
> > > > > >>> >> >> need to proxy these requests (modify xhr.open to go to
> our
> > > > proxy,
> > > > > >>> which
> > > > > >>> >> >> requires the local web server).
> > > > > >>> >> >>
> > > > > >>> >> >> The bridge works great, and plugins work great.
> > > > > >>> >> >>
> > > > > >>> >> >>
> > > > > >>> >> >>
> > > > > >>> >> >>
> > > > > >>> >> >>
> > > > > >>> >> >
> > > > > >>> >>
> > > > > >>>
> > > > > >>
> > > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>
>
>
> --
> Carlos Santana
> <cs...@gmail.com>
>

Re: [iOS 8] Status of WKWebView work

Posted by Carlos Santana <cs...@gmail.com>.
Ross can you clarify your results for Objectstore ArrayBuffer?

Notes:
- Objectstore ArrayBuffer is only supported in Safari & WKWebView App

iPod Touch iOS 8 *Safari*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
- Objectstore ArrayBuffer Support - *Yes*

iPod Touch iOS 8 *HomeScreen*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
- Objectstore ArrayBuffer Support - *No*


iPod Touch iOS 8 *WKWebView*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
- Objectstore ArrayBuffer Support - *No*


iPod Touch iOS 8 *UIWebView*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
- Objectstore ArrayBuffer Support - *No*

On Wed, Sep 10, 2014 at 12:14 PM, Ross Gerbasi <rg...@gmail.com> wrote:

> If you have a chance can you re-run the tests and make sure I didn't screw
> anything up? :)
>
> -ross
>
> On Wed, Sep 10, 2014 at 11:04 AM, Shazron <sh...@gmail.com> wrote:
>
> > Ross - shoot. Arrgh I may have mixed up my test apps :( I should emblazon
> > "WKWebView" or "UIWebView" at the start of the app. Thank goodness for
> peer
> > review...
> >
> > On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi <rg...@gmail.com>
> wrote:
> >
> > > Here are the results of some tests on iOS8, hopefully they will be
> useful
> > > to someone! :)
> > > I need to do some more useful tests on DOM related stuff as it was
> > > mentioned here already JS speed is not usually the bottleneck in
> Cordova
> > > apps.  Unless you're doing crazy crypto like some people :)
> > >
> > > *@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe I
> am
> > > not enabling something I need to on the native side? For me HTML5 Test
> is
> > > only showing IndexedDB for Safari and WKWebView. As you can see I am
> > > getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
> > >
> > >
> > > *Tests run on an iPod Touch 5th Generation running iOS8 GA*
> > >
> > > iPod Touch iOS 8 *Safari*
> > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> > > Safari/600.1.4
> > > Sunspider - 1825ms Overall
> > > HMTL5 Test - 440/555
> > > - Seamless iFrame - No
> > > - 2D Graphics Path Support - Yes
> > > - Web GL 3D Graphics - Yes
> > > - IndexedDB - Yes
> > > - Objectstore ArrayBuffer Support - Yes
> > >
> > > iPod Touch iOS 8 *HomeScreen*
> > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > SunSpider - 1801.0ms Overall
> > > HTML5 Test - 427/555
> > > - Seamless iFrame - No
> > > - 2D Graphics Path Support - Yes
> > > - Web GL 3D Graphics - Yes
> > > - IndexedDB - No
> > > - Objectstore ArrayBuffer Support - No
> > >
> > >
> > > iPod Touch iOS 8 *WKWebView*
> > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > SunSpider - 1822.8ms Overall
> > > HTML5 Test - 438/555
> > > - Seamless iFrame - No
> > > - 2D Graphics Path Support - Yes
> > > - Web GL 3D Graphics - Yes
> > > - IndexedDB - Yes
> > > - Objectstore ArrayBuffer Support - No
> > >
> > >
> > > iPod Touch iOS 8 *UIWebView*
> > > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > > SunSpider - 7114.6ms Overall
> > > HTML5 Test - 427/555
> > > - Seamless iFrame - No
> > > - 2D Graphics Path Support - Yes
> > > - Web GL 3D Graphics - Yes
> > > - IndexedDB - No
> > > - Objectstore ArrayBuffer Support - No
> > >
> > >
> > > *iOS 8 Notes*
> > > - Seamless iFrame was removed compared to iOS 7.1.2
> > > - IndexedDB is only supported in Safari & WKWebView App
> > > - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
> > > - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
> > > - WKWebView cannot load local files (issue for Cordova/Phonegap/Offline
> > > Solutions)
> > >         - No UserAgent difference between UIWebView and WKWebView.
> > >
> > >
> > > On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <
> > tommy@devgeeks.org>
> > > wrote:
> > >
> > > > Generally speaking, JS performance is not a problem for most iOS
> > Cordova
> > > > apps. Certainly I never had a problem until recently.
> > > >
> > > > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1]
> that
> > > > works pretty damn good on Android, decently on BB10 and even pretty
> > good
> > > on
> > > > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
> > > >
> > > > And that’s only using 1000 rounds of PBKDF2 for SRP authentication
> > (less
> > > > than we would like).
> > > >
> > > > Luckily, my use case is not the norm… but it does mean I am making
> apps
> > > > that are unusable on iOS, which makes me sad.
> > > >
> > > > 1. https://crypton.io
> > > >
> > > > On 10 September 2014 at 10:20:21, Andrew Grieve (
> agrieve@chromium.org)
> > > > wrote:
> > > >
> > > > That's great news.
> > > >
> > > > JS execution speed honestly hasn't really been a problem for Cordova
> > > > apps that I've heard of anyways.
> > > >
> > > > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > > > > Some interesting findings - iOS UIWebView and WKWebView have the
> same
> > > > > user-agent value, and both score 440 on html5test.com.
> > > > >
> > > > > Which makes me think they use the same engine (renderer and js),
> but
> > > > > UIWebView has nitro turned off. WKWebView seems to be about 4x
> faster
> > > on
> > > > > the Sunspider benchmark.
> > > > >
> > > > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
> > > > >
> > > > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes
> it
> > > > >> supports indexedDB
> > > > >> Full results: http://html5te.st/f16d892273bbe5bd
> > > > >>
> > > > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <
> agrieve@chromium.org
> > >
> > > > >> wrote:
> > > > >>
> > > > >>> :(
> > > > >>>
> > > > >>> Hopefully UIWebView will still get some updates though? E.g.
> > > IndexedDb?
> > > > >>>
> > > > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <
> tommy@devgeeks.org
> > >
> > > > >>> wrote:
> > > > >>> > That's pretty disappointing.
> > > > >>> >
> > > > >>> > Especially with not even a comment from apple.
> > > > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> > > > >>> >
> > > > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an
> > > iPhone
> > > > 5
> > > > >>> and
> > > > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a
> bug
> > > and
> > > > >>> not by
> > > > >>> >> design) is still there.
> > > > >>> >>
> > > > >>> >> http://www.openradar.me/radar?id=5839348817723392
> > > > >>> >>
> > > > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com>
> > > wrote:
> > > > >>> >>
> > > > >>> >> > Clarification:
> > > > >>> >> > When I said "The bridge works great, and plugins work
> great."
> > > this
> > > > >>> was
> > > > >>> >> > for loading a html page and plugins using the file://
> protocol
> > > > using
> > > > >>> >> > WKWebView (as the title of the report implies). The bug I
> > > reported
> > > > >>> was on
> > > > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info
> > was
> > > in
> > > > >>> the
> > > > >>> >> bug
> > > > >>> >> > report as well).
> > > > >>> >> >
> > > > >>> >> > *Nothing* has been done using the local web server and proxy
> > (at
> > > > >>> least
> > > > >>> >> > nothing checked in). An implementation on how the proxy
> works
> > > can
> > > > be
> > > > >>> seen
> > > > >>> >> > in the PhoneGap Developer App:
> > > > >>> >> > https://github.com/phonegap/phonegap-app-developer
> > > > >>> >> >
> > > > >>> >> > See CB-7043 for progress on tasks regarding this.
> > > > >>> >> >
> > > > >>> >> >
> > > > >>> >> >
> > > > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <shazron@gmail.com
> >
> > > > wrote:
> > > > >>> >> >
> > > > >>> >> >> I figure I will write this all up before the official
> release
> > > of
> > > > >>> iOS 8
> > > > >>> >> >> next week (probability high) and everyone asking about
> > support.
> > > > >>> >> >>
> > > > >>> >> >> It has stalled because the WKWebView cannot load files
> using
> > > the
> > > > >>> file://
> > > > >>> >> >> protocol since iOS 8 beta 4.
> > > > >>> >> >>
> > > > >>> >> >> This bug has been filed with Apple weeks ago:
> > > > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> > > > >>> >> >>
> > > > >>> >> >> I even checked WebKit check-ins if there was any progress,
> so
> > > > far,
> > > > >>> no:
> > > > >>> >> >>
> > > > >>> >> >>
> > > > >>> >>
> > > > >>>
> > > >
> > >
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > > > >>> >> >> (but it's entirely possible the loading code is in another
> > part
> > > > of
> > > > >>> the
> > > > >>> >> >> tree).
> > > > >>> >> >>
> > > > >>> >> >> The alternative is to run a local web server, which works
> > > great.
> > > > >>> >> However,
> > > > >>> >> >> this will open up a can of worms possibly with Apple, I'm
> not
> > > > sure.
> > > > >>> >> >>
> > > > >>> >> >> The other interesting tidbit is, with WKWebView, for
> locally
> > > > loaded
> > > > >>> >> files
> > > > >>> >> >> using the file:// protocol, cross-domain restrictions now
> > > apply,
> > > > >>> unlike
> > > > >>> >> >> UIWebView's behaviour. To have the same behaviour as
> > UIWebView,
> > > > we
> > > > >>> would
> > > > >>> >> >> need to proxy these requests (modify xhr.open to go to our
> > > proxy,
> > > > >>> which
> > > > >>> >> >> requires the local web server).
> > > > >>> >> >>
> > > > >>> >> >> The bridge works great, and plugins work great.
> > > > >>> >> >>
> > > > >>> >> >>
> > > > >>> >> >>
> > > > >>> >> >>
> > > > >>> >> >>
> > > > >>> >> >
> > > > >>> >>
> > > > >>>
> > > > >>
> > > > >>
> > > >
> > > >
> > >
> >
>



-- 
Carlos Santana
<cs...@gmail.com>

Re: [iOS 8] Status of WKWebView work

Posted by Ross Gerbasi <rg...@gmail.com>.
If you have a chance can you re-run the tests and make sure I didn't screw
anything up? :)

-ross

On Wed, Sep 10, 2014 at 11:04 AM, Shazron <sh...@gmail.com> wrote:

> Ross - shoot. Arrgh I may have mixed up my test apps :( I should emblazon
> "WKWebView" or "UIWebView" at the start of the app. Thank goodness for peer
> review...
>
> On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi <rg...@gmail.com> wrote:
>
> > Here are the results of some tests on iOS8, hopefully they will be useful
> > to someone! :)
> > I need to do some more useful tests on DOM related stuff as it was
> > mentioned here already JS speed is not usually the bottleneck in Cordova
> > apps.  Unless you're doing crazy crypto like some people :)
> >
> > *@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe I am
> > not enabling something I need to on the native side? For me HTML5 Test is
> > only showing IndexedDB for Safari and WKWebView. As you can see I am
> > getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
> >
> >
> > *Tests run on an iPod Touch 5th Generation running iOS8 GA*
> >
> > iPod Touch iOS 8 *Safari*
> > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> > Safari/600.1.4
> > Sunspider - 1825ms Overall
> > HMTL5 Test - 440/555
> > - Seamless iFrame - No
> > - 2D Graphics Path Support - Yes
> > - Web GL 3D Graphics - Yes
> > - IndexedDB - Yes
> > - Objectstore ArrayBuffer Support - Yes
> >
> > iPod Touch iOS 8 *HomeScreen*
> > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > SunSpider - 1801.0ms Overall
> > HTML5 Test - 427/555
> > - Seamless iFrame - No
> > - 2D Graphics Path Support - Yes
> > - Web GL 3D Graphics - Yes
> > - IndexedDB - No
> > - Objectstore ArrayBuffer Support - No
> >
> >
> > iPod Touch iOS 8 *WKWebView*
> > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > SunSpider - 1822.8ms Overall
> > HTML5 Test - 438/555
> > - Seamless iFrame - No
> > - 2D Graphics Path Support - Yes
> > - Web GL 3D Graphics - Yes
> > - IndexedDB - Yes
> > - Objectstore ArrayBuffer Support - No
> >
> >
> > iPod Touch iOS 8 *UIWebView*
> > UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> > AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> > SunSpider - 7114.6ms Overall
> > HTML5 Test - 427/555
> > - Seamless iFrame - No
> > - 2D Graphics Path Support - Yes
> > - Web GL 3D Graphics - Yes
> > - IndexedDB - No
> > - Objectstore ArrayBuffer Support - No
> >
> >
> > *iOS 8 Notes*
> > - Seamless iFrame was removed compared to iOS 7.1.2
> > - IndexedDB is only supported in Safari & WKWebView App
> > - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
> > - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
> > - WKWebView cannot load local files (issue for Cordova/Phonegap/Offline
> > Solutions)
> >         - No UserAgent difference between UIWebView and WKWebView.
> >
> >
> > On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <
> tommy@devgeeks.org>
> > wrote:
> >
> > > Generally speaking, JS performance is not a problem for most iOS
> Cordova
> > > apps. Certainly I never had a problem until recently.
> > >
> > > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1] that
> > > works pretty damn good on Android, decently on BB10 and even pretty
> good
> > on
> > > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
> > >
> > > And that’s only using 1000 rounds of PBKDF2 for SRP authentication
> (less
> > > than we would like).
> > >
> > > Luckily, my use case is not the norm… but it does mean I am making apps
> > > that are unusable on iOS, which makes me sad.
> > >
> > > 1. https://crypton.io
> > >
> > > On 10 September 2014 at 10:20:21, Andrew Grieve (agrieve@chromium.org)
> > > wrote:
> > >
> > > That's great news.
> > >
> > > JS execution speed honestly hasn't really been a problem for Cordova
> > > apps that I've heard of anyways.
> > >
> > > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > > > Some interesting findings - iOS UIWebView and WKWebView have the same
> > > > user-agent value, and both score 440 on html5test.com.
> > > >
> > > > Which makes me think they use the same engine (renderer and js), but
> > > > UIWebView has nitro turned off. WKWebView seems to be about 4x faster
> > on
> > > > the Sunspider benchmark.
> > > >
> > > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
> > > >
> > > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
> > > >> supports indexedDB
> > > >> Full results: http://html5te.st/f16d892273bbe5bd
> > > >>
> > > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <agrieve@chromium.org
> >
> > > >> wrote:
> > > >>
> > > >>> :(
> > > >>>
> > > >>> Hopefully UIWebView will still get some updates though? E.g.
> > IndexedDb?
> > > >>>
> > > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <tommy@devgeeks.org
> >
> > > >>> wrote:
> > > >>> > That's pretty disappointing.
> > > >>> >
> > > >>> > Especially with not even a comment from apple.
> > > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> > > >>> >
> > > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an
> > iPhone
> > > 5
> > > >>> and
> > > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug
> > and
> > > >>> not by
> > > >>> >> design) is still there.
> > > >>> >>
> > > >>> >> http://www.openradar.me/radar?id=5839348817723392
> > > >>> >>
> > > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com>
> > wrote:
> > > >>> >>
> > > >>> >> > Clarification:
> > > >>> >> > When I said "The bridge works great, and plugins work great."
> > this
> > > >>> was
> > > >>> >> > for loading a html page and plugins using the file:// protocol
> > > using
> > > >>> >> > WKWebView (as the title of the report implies). The bug I
> > reported
> > > >>> was on
> > > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info
> was
> > in
> > > >>> the
> > > >>> >> bug
> > > >>> >> > report as well).
> > > >>> >> >
> > > >>> >> > *Nothing* has been done using the local web server and proxy
> (at
> > > >>> least
> > > >>> >> > nothing checked in). An implementation on how the proxy works
> > can
> > > be
> > > >>> seen
> > > >>> >> > in the PhoneGap Developer App:
> > > >>> >> > https://github.com/phonegap/phonegap-app-developer
> > > >>> >> >
> > > >>> >> > See CB-7043 for progress on tasks regarding this.
> > > >>> >> >
> > > >>> >> >
> > > >>> >> >
> > > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com>
> > > wrote:
> > > >>> >> >
> > > >>> >> >> I figure I will write this all up before the official release
> > of
> > > >>> iOS 8
> > > >>> >> >> next week (probability high) and everyone asking about
> support.
> > > >>> >> >>
> > > >>> >> >> It has stalled because the WKWebView cannot load files using
> > the
> > > >>> file://
> > > >>> >> >> protocol since iOS 8 beta 4.
> > > >>> >> >>
> > > >>> >> >> This bug has been filed with Apple weeks ago:
> > > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> > > >>> >> >>
> > > >>> >> >> I even checked WebKit check-ins if there was any progress, so
> > > far,
> > > >>> no:
> > > >>> >> >>
> > > >>> >> >>
> > > >>> >>
> > > >>>
> > >
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > > >>> >> >> (but it's entirely possible the loading code is in another
> part
> > > of
> > > >>> the
> > > >>> >> >> tree).
> > > >>> >> >>
> > > >>> >> >> The alternative is to run a local web server, which works
> > great.
> > > >>> >> However,
> > > >>> >> >> this will open up a can of worms possibly with Apple, I'm not
> > > sure.
> > > >>> >> >>
> > > >>> >> >> The other interesting tidbit is, with WKWebView, for locally
> > > loaded
> > > >>> >> files
> > > >>> >> >> using the file:// protocol, cross-domain restrictions now
> > apply,
> > > >>> unlike
> > > >>> >> >> UIWebView's behaviour. To have the same behaviour as
> UIWebView,
> > > we
> > > >>> would
> > > >>> >> >> need to proxy these requests (modify xhr.open to go to our
> > proxy,
> > > >>> which
> > > >>> >> >> requires the local web server).
> > > >>> >> >>
> > > >>> >> >> The bridge works great, and plugins work great.
> > > >>> >> >>
> > > >>> >> >>
> > > >>> >> >>
> > > >>> >> >>
> > > >>> >> >>
> > > >>> >> >
> > > >>> >>
> > > >>>
> > > >>
> > > >>
> > >
> > >
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Ross - shoot. Arrgh I may have mixed up my test apps :( I should emblazon
"WKWebView" or "UIWebView" at the start of the app. Thank goodness for peer
review...

On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi <rg...@gmail.com> wrote:

> Here are the results of some tests on iOS8, hopefully they will be useful
> to someone! :)
> I need to do some more useful tests on DOM related stuff as it was
> mentioned here already JS speed is not usually the bottleneck in Cordova
> apps.  Unless you're doing crazy crypto like some people :)
>
> *@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe I am
> not enabling something I need to on the native side? For me HTML5 Test is
> only showing IndexedDB for Safari and WKWebView. As you can see I am
> getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.
>
>
> *Tests run on an iPod Touch 5th Generation running iOS8 GA*
>
> iPod Touch iOS 8 *Safari*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
> Safari/600.1.4
> Sunspider - 1825ms Overall
> HMTL5 Test - 440/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - Yes
> - Objectstore ArrayBuffer Support - Yes
>
> iPod Touch iOS 8 *HomeScreen*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 1801.0ms Overall
> HTML5 Test - 427/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - No
> - Objectstore ArrayBuffer Support - No
>
>
> iPod Touch iOS 8 *WKWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 1822.8ms Overall
> HTML5 Test - 438/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - Yes
> - Objectstore ArrayBuffer Support - No
>
>
> iPod Touch iOS 8 *UIWebView*
> UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
> AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
> SunSpider - 7114.6ms Overall
> HTML5 Test - 427/555
> - Seamless iFrame - No
> - 2D Graphics Path Support - Yes
> - Web GL 3D Graphics - Yes
> - IndexedDB - No
> - Objectstore ArrayBuffer Support - No
>
>
> *iOS 8 Notes*
> - Seamless iFrame was removed compared to iOS 7.1.2
> - IndexedDB is only supported in Safari & WKWebView App
> - Objectstore ArrayBuffer is only supported in Safari & WKWebView App
> - UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
> - WKWebView cannot load local files (issue for Cordova/Phonegap/Offline
> Solutions)
>         - No UserAgent difference between UIWebView and WKWebView.
>
>
> On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <to...@devgeeks.org>
> wrote:
>
> > Generally speaking, JS performance is not a problem for most iOS Cordova
> > apps. Certainly I never had a problem until recently.
> >
> > Sadly, I now work with a JS privacy (crypto) lib called Crypton[1] that
> > works pretty damn good on Android, decently on BB10 and even pretty good
> on
> > FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
> >
> > And that’s only using 1000 rounds of PBKDF2 for SRP authentication (less
> > than we would like).
> >
> > Luckily, my use case is not the norm… but it does mean I am making apps
> > that are unusable on iOS, which makes me sad.
> >
> > 1. https://crypton.io
> >
> > On 10 September 2014 at 10:20:21, Andrew Grieve (agrieve@chromium.org)
> > wrote:
> >
> > That's great news.
> >
> > JS execution speed honestly hasn't really been a problem for Cordova
> > apps that I've heard of anyways.
> >
> > On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > > Some interesting findings - iOS UIWebView and WKWebView have the same
> > > user-agent value, and both score 440 on html5test.com.
> > >
> > > Which makes me think they use the same engine (renderer and js), but
> > > UIWebView has nitro turned off. WKWebView seems to be about 4x faster
> on
> > > the Sunspider benchmark.
> > >
> > > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
> > >
> > >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
> > >> supports indexedDB
> > >> Full results: http://html5te.st/f16d892273bbe5bd
> > >>
> > >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>
> > >> wrote:
> > >>
> > >>> :(
> > >>>
> > >>> Hopefully UIWebView will still get some updates though? E.g.
> IndexedDb?
> > >>>
> > >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>
> > >>> wrote:
> > >>> > That's pretty disappointing.
> > >>> >
> > >>> > Especially with not even a comment from apple.
> > >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> > >>> >
> > >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an
> iPhone
> > 5
> > >>> and
> > >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug
> and
> > >>> not by
> > >>> >> design) is still there.
> > >>> >>
> > >>> >> http://www.openradar.me/radar?id=5839348817723392
> > >>> >>
> > >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com>
> wrote:
> > >>> >>
> > >>> >> > Clarification:
> > >>> >> > When I said "The bridge works great, and plugins work great."
> this
> > >>> was
> > >>> >> > for loading a html page and plugins using the file:// protocol
> > using
> > >>> >> > WKWebView (as the title of the report implies). The bug I
> reported
> > >>> was on
> > >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was
> in
> > >>> the
> > >>> >> bug
> > >>> >> > report as well).
> > >>> >> >
> > >>> >> > *Nothing* has been done using the local web server and proxy (at
> > >>> least
> > >>> >> > nothing checked in). An implementation on how the proxy works
> can
> > be
> > >>> seen
> > >>> >> > in the PhoneGap Developer App:
> > >>> >> > https://github.com/phonegap/phonegap-app-developer
> > >>> >> >
> > >>> >> > See CB-7043 for progress on tasks regarding this.
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com>
> > wrote:
> > >>> >> >
> > >>> >> >> I figure I will write this all up before the official release
> of
> > >>> iOS 8
> > >>> >> >> next week (probability high) and everyone asking about support.
> > >>> >> >>
> > >>> >> >> It has stalled because the WKWebView cannot load files using
> the
> > >>> file://
> > >>> >> >> protocol since iOS 8 beta 4.
> > >>> >> >>
> > >>> >> >> This bug has been filed with Apple weeks ago:
> > >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> > >>> >> >>
> > >>> >> >> I even checked WebKit check-ins if there was any progress, so
> > far,
> > >>> no:
> > >>> >> >>
> > >>> >> >>
> > >>> >>
> > >>>
> >
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> > >>> >> >> (but it's entirely possible the loading code is in another part
> > of
> > >>> the
> > >>> >> >> tree).
> > >>> >> >>
> > >>> >> >> The alternative is to run a local web server, which works
> great.
> > >>> >> However,
> > >>> >> >> this will open up a can of worms possibly with Apple, I'm not
> > sure.
> > >>> >> >>
> > >>> >> >> The other interesting tidbit is, with WKWebView, for locally
> > loaded
> > >>> >> files
> > >>> >> >> using the file:// protocol, cross-domain restrictions now
> apply,
> > >>> unlike
> > >>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView,
> > we
> > >>> would
> > >>> >> >> need to proxy these requests (modify xhr.open to go to our
> proxy,
> > >>> which
> > >>> >> >> requires the local web server).
> > >>> >> >>
> > >>> >> >> The bridge works great, and plugins work great.
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >>
> > >>> >> >
> > >>> >>
> > >>>
> > >>
> > >>
> >
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Ross Gerbasi <rg...@gmail.com>.
Here are the results of some tests on iOS8, hopefully they will be useful
to someone! :)
I need to do some more useful tests on DOM related stuff as it was
mentioned here already JS speed is not usually the bottleneck in Cordova
apps.  Unless you're doing crazy crypto like some people :)

*@Shazron:* I am not seeing IndexedDB support in UIWebView but maybe I am
not enabling something I need to on the native side? For me HTML5 Test is
only showing IndexedDB for Safari and WKWebView. As you can see I am
getting a dramatic lower HTML5 Test score in UIWEbView vs WKWebView.


*Tests run on an iPod Touch 5th Generation running iOS8 GA*

iPod Touch iOS 8 *Safari*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A365
Safari/600.1.4
Sunspider - 1825ms Overall
HMTL5 Test - 440/555
- Seamless iFrame - No
- 2D Graphics Path Support - Yes
- Web GL 3D Graphics - Yes
- IndexedDB - Yes
- Objectstore ArrayBuffer Support - Yes

iPod Touch iOS 8 *HomeScreen*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
SunSpider - 1801.0ms Overall
HTML5 Test - 427/555
- Seamless iFrame - No
- 2D Graphics Path Support - Yes
- Web GL 3D Graphics - Yes
- IndexedDB - No
- Objectstore ArrayBuffer Support - No


iPod Touch iOS 8 *WKWebView*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
SunSpider - 1822.8ms Overall
HTML5 Test - 438/555
- Seamless iFrame - No
- 2D Graphics Path Support - Yes
- Web GL 3D Graphics - Yes
- IndexedDB - Yes
- Objectstore ArrayBuffer Support - No


iPod Touch iOS 8 *UIWebView*
UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365
SunSpider - 7114.6ms Overall
HTML5 Test - 427/555
- Seamless iFrame - No
- 2D Graphics Path Support - Yes
- Web GL 3D Graphics - Yes
- IndexedDB - No
- Objectstore ArrayBuffer Support - No


*iOS 8 Notes*
- Seamless iFrame was removed compared to iOS 7.1.2
- IndexedDB is only supported in Safari & WKWebView App
- Objectstore ArrayBuffer is only supported in Safari & WKWebView App
- UIWebView is ~4x slower then WKWebView for JS (Sunspider results)
- WKWebView cannot load local files (issue for Cordova/Phonegap/Offline
Solutions)
        - No UserAgent difference between UIWebView and WKWebView.


On Tue, Sep 9, 2014 at 7:41 PM, tommy-carlos williams <to...@devgeeks.org>
wrote:

> Generally speaking, JS performance is not a problem for most iOS Cordova
> apps. Certainly I never had a problem until recently.
>
> Sadly, I now work with a JS privacy (crypto) lib called Crypton[1] that
> works pretty damn good on Android, decently on BB10 and even pretty good on
> FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(
>
> And that’s only using 1000 rounds of PBKDF2 for SRP authentication (less
> than we would like).
>
> Luckily, my use case is not the norm… but it does mean I am making apps
> that are unusable on iOS, which makes me sad.
>
> 1. https://crypton.io
>
> On 10 September 2014 at 10:20:21, Andrew Grieve (agrieve@chromium.org)
> wrote:
>
> That's great news.
>
> JS execution speed honestly hasn't really been a problem for Cordova
> apps that I've heard of anyways.
>
> On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> > Some interesting findings - iOS UIWebView and WKWebView have the same
> > user-agent value, and both score 440 on html5test.com.
> >
> > Which makes me think they use the same engine (renderer and js), but
> > UIWebView has nitro turned off. WKWebView seems to be about 4x faster on
> > the Sunspider benchmark.
> >
> > On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
> >
> >> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
> >> supports indexedDB
> >> Full results: http://html5te.st/f16d892273bbe5bd
> >>
> >> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>
> >> wrote:
> >>
> >>> :(
> >>>
> >>> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?
> >>>
> >>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>
> >>> wrote:
> >>> > That's pretty disappointing.
> >>> >
> >>> > Especially with not even a comment from apple.
> >>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> >>> >
> >>> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone
> 5
> >>> and
> >>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and
> >>> not by
> >>> >> design) is still there.
> >>> >>
> >>> >> http://www.openradar.me/radar?id=5839348817723392
> >>> >>
> >>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
> >>> >>
> >>> >> > Clarification:
> >>> >> > When I said "The bridge works great, and plugins work great." this
> >>> was
> >>> >> > for loading a html page and plugins using the file:// protocol
> using
> >>> >> > WKWebView (as the title of the report implies). The bug I reported
> >>> was on
> >>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in
> >>> the
> >>> >> bug
> >>> >> > report as well).
> >>> >> >
> >>> >> > *Nothing* has been done using the local web server and proxy (at
> >>> least
> >>> >> > nothing checked in). An implementation on how the proxy works can
> be
> >>> seen
> >>> >> > in the PhoneGap Developer App:
> >>> >> > https://github.com/phonegap/phonegap-app-developer
> >>> >> >
> >>> >> > See CB-7043 for progress on tasks regarding this.
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com>
> wrote:
> >>> >> >
> >>> >> >> I figure I will write this all up before the official release of
> >>> iOS 8
> >>> >> >> next week (probability high) and everyone asking about support.
> >>> >> >>
> >>> >> >> It has stalled because the WKWebView cannot load files using the
> >>> file://
> >>> >> >> protocol since iOS 8 beta 4.
> >>> >> >>
> >>> >> >> This bug has been filed with Apple weeks ago:
> >>> >> >> http://www.openradar.me/radar?id=5839348817723392
> >>> >> >>
> >>> >> >> I even checked WebKit check-ins if there was any progress, so
> far,
> >>> no:
> >>> >> >>
> >>> >> >>
> >>> >>
> >>>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >>> >> >> (but it's entirely possible the loading code is in another part
> of
> >>> the
> >>> >> >> tree).
> >>> >> >>
> >>> >> >> The alternative is to run a local web server, which works great.
> >>> >> However,
> >>> >> >> this will open up a can of worms possibly with Apple, I'm not
> sure.
> >>> >> >>
> >>> >> >> The other interesting tidbit is, with WKWebView, for locally
> loaded
> >>> >> files
> >>> >> >> using the file:// protocol, cross-domain restrictions now apply,
> >>> unlike
> >>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView,
> we
> >>> would
> >>> >> >> need to proxy these requests (modify xhr.open to go to our proxy,
> >>> which
> >>> >> >> requires the local web server).
> >>> >> >>
> >>> >> >> The bridge works great, and plugins work great.
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >
> >>> >>
> >>>
> >>
> >>
>
>

Re: [iOS 8] Status of WKWebView work

Posted by tommy-carlos williams <to...@devgeeks.org>.
Generally speaking, JS performance is not a problem for most iOS Cordova apps. Certainly I never had a problem until recently.

Sadly, I now work with a JS privacy (crypto) lib called Crypton[1] that works pretty damn good on Android, decently on BB10 and even pretty good on FxOS… but takes like 2 MINUTES just to log in on an iPhone 5 :(

And that’s only using 1000 rounds of PBKDF2 for SRP authentication (less than we would like).

Luckily, my use case is not the norm… but it does mean I am making apps that are unusable on iOS, which makes me sad.

1. https://crypton.io

On 10 September 2014 at 10:20:21, Andrew Grieve (agrieve@chromium.org) wrote:

That's great news.  

JS execution speed honestly hasn't really been a problem for Cordova  
apps that I've heard of anyways.  

On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:  
> Some interesting findings - iOS UIWebView and WKWebView have the same  
> user-agent value, and both score 440 on html5test.com.  
>  
> Which makes me think they use the same engine (renderer and js), but  
> UIWebView has nitro turned off. WKWebView seems to be about 4x faster on  
> the Sunspider benchmark.  
>  
> On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:  
>  
>> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it  
>> supports indexedDB  
>> Full results: http://html5te.st/f16d892273bbe5bd  
>>  
>> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>  
>> wrote:  
>>  
>>> :(  
>>>  
>>> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?  
>>>  
>>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>  
>>> wrote:  
>>> > That's pretty disappointing.  
>>> >  
>>> > Especially with not even a comment from apple.  
>>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:  
>>> >  
>>> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5  
>>> and  
>>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and  
>>> not by  
>>> >> design) is still there.  
>>> >>  
>>> >> http://www.openradar.me/radar?id=5839348817723392  
>>> >>  
>>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:  
>>> >>  
>>> >> > Clarification:  
>>> >> > When I said "The bridge works great, and plugins work great." this  
>>> was  
>>> >> > for loading a html page and plugins using the file:// protocol using  
>>> >> > WKWebView (as the title of the report implies). The bug I reported  
>>> was on  
>>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in  
>>> the  
>>> >> bug  
>>> >> > report as well).  
>>> >> >  
>>> >> > *Nothing* has been done using the local web server and proxy (at  
>>> least  
>>> >> > nothing checked in). An implementation on how the proxy works can be  
>>> seen  
>>> >> > in the PhoneGap Developer App:  
>>> >> > https://github.com/phonegap/phonegap-app-developer  
>>> >> >  
>>> >> > See CB-7043 for progress on tasks regarding this.  
>>> >> >  
>>> >> >  
>>> >> >  
>>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:  
>>> >> >  
>>> >> >> I figure I will write this all up before the official release of  
>>> iOS 8  
>>> >> >> next week (probability high) and everyone asking about support.  
>>> >> >>  
>>> >> >> It has stalled because the WKWebView cannot load files using the  
>>> file://  
>>> >> >> protocol since iOS 8 beta 4.  
>>> >> >>  
>>> >> >> This bug has been filed with Apple weeks ago:  
>>> >> >> http://www.openradar.me/radar?id=5839348817723392  
>>> >> >>  
>>> >> >> I even checked WebKit check-ins if there was any progress, so far,  
>>> no:  
>>> >> >>  
>>> >> >>  
>>> >>  
>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1  
>>> >> >> (but it's entirely possible the loading code is in another part of  
>>> the  
>>> >> >> tree).  
>>> >> >>  
>>> >> >> The alternative is to run a local web server, which works great.  
>>> >> However,  
>>> >> >> this will open up a can of worms possibly with Apple, I'm not sure.  
>>> >> >>  
>>> >> >> The other interesting tidbit is, with WKWebView, for locally loaded  
>>> >> files  
>>> >> >> using the file:// protocol, cross-domain restrictions now apply,  
>>> unlike  
>>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we  
>>> would  
>>> >> >> need to proxy these requests (modify xhr.open to go to our proxy,  
>>> which  
>>> >> >> requires the local web server).  
>>> >> >>  
>>> >> >> The bridge works great, and plugins work great.  
>>> >> >>  
>>> >> >>  
>>> >> >>  
>>> >> >>  
>>> >> >>  
>>> >> >  
>>> >>  
>>>  
>>  
>>  


Re: [iOS 8] Status of WKWebView work

Posted by Andrew Grieve <ag...@chromium.org>.
That's great news.

JS execution speed honestly hasn't really been a problem for Cordova
apps that I've heard of anyways.

On Tue, Sep 9, 2014 at 7:01 PM, Shazron <sh...@gmail.com> wrote:
> Some interesting findings - iOS UIWebView and WKWebView have the same
> user-agent value, and both score 440 on html5test.com.
>
> Which makes me think they use the same engine (renderer and js), but
> UIWebView has nitro turned off. WKWebView seems to be about 4x faster on
> the Sunspider benchmark.
>
> On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:
>
>> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
>> supports indexedDB
>> Full results: http://html5te.st/f16d892273bbe5bd
>>
>> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>
>> wrote:
>>
>>> :(
>>>
>>> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?
>>>
>>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>
>>> wrote:
>>> > That's pretty disappointing.
>>> >
>>> > Especially with not even a comment from apple.
>>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
>>> >
>>> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5
>>> and
>>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and
>>> not by
>>> >> design) is still there.
>>> >>
>>> >> http://www.openradar.me/radar?id=5839348817723392
>>> >>
>>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
>>> >>
>>> >> > Clarification:
>>> >> > When I said "The bridge works great, and plugins work great." this
>>> was
>>> >> > for loading a html page and plugins using the file:// protocol using
>>> >> > WKWebView (as the title of the report implies). The bug I reported
>>> was on
>>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in
>>> the
>>> >> bug
>>> >> > report as well).
>>> >> >
>>> >> > *Nothing* has been done using the local web server and proxy (at
>>> least
>>> >> > nothing checked in). An implementation on how the proxy works can be
>>> seen
>>> >> > in the PhoneGap Developer App:
>>> >> > https://github.com/phonegap/phonegap-app-developer
>>> >> >
>>> >> > See CB-7043 for progress on tasks regarding this.
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
>>> >> >
>>> >> >> I figure I will write this all up before the official release of
>>> iOS 8
>>> >> >> next week (probability high) and everyone asking about support.
>>> >> >>
>>> >> >> It has stalled because the WKWebView cannot load files using the
>>> file://
>>> >> >> protocol since iOS 8 beta 4.
>>> >> >>
>>> >> >> This bug has been filed with Apple weeks ago:
>>> >> >> http://www.openradar.me/radar?id=5839348817723392
>>> >> >>
>>> >> >> I even checked WebKit check-ins if there was any progress, so far,
>>> no:
>>> >> >>
>>> >> >>
>>> >>
>>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>>> >> >> (but it's entirely possible the loading code is in another part of
>>> the
>>> >> >> tree).
>>> >> >>
>>> >> >> The alternative is to run a local web server, which works great.
>>> >> However,
>>> >> >> this will open up a can of worms possibly with Apple, I'm not sure.
>>> >> >>
>>> >> >> The other interesting tidbit is, with WKWebView, for locally loaded
>>> >> files
>>> >> >> using the file:// protocol, cross-domain restrictions now apply,
>>> unlike
>>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we
>>> would
>>> >> >> need to proxy these requests (modify xhr.open to go to our proxy,
>>> which
>>> >> >> requires the local web server).
>>> >> >>
>>> >> >> The bridge works great, and plugins work great.
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >
>>> >>
>>>
>>
>>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Some interesting findings - iOS UIWebView and WKWebView have the same
user-agent value, and both score 440 on html5test.com.

Which makes me think they use the same engine (renderer and js), but
UIWebView has nitro turned off. WKWebView seems to be about 4x faster on
the Sunspider benchmark.

On Tue, Sep 9, 2014 at 3:58 PM, Shazron <sh...@gmail.com> wrote:

> UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it
> supports indexedDB
> Full results: http://html5te.st/f16d892273bbe5bd
>
> On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org>
> wrote:
>
>> :(
>>
>> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?
>>
>> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org>
>> wrote:
>> > That's pretty disappointing.
>> >
>> > Especially with not even a comment from apple.
>> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
>> >
>> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5
>> and
>> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and
>> not by
>> >> design) is still there.
>> >>
>> >> http://www.openradar.me/radar?id=5839348817723392
>> >>
>> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
>> >>
>> >> > Clarification:
>> >> > When I said "The bridge works great, and plugins work great." this
>> was
>> >> > for loading a html page and plugins using the file:// protocol using
>> >> > WKWebView (as the title of the report implies). The bug I reported
>> was on
>> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in
>> the
>> >> bug
>> >> > report as well).
>> >> >
>> >> > *Nothing* has been done using the local web server and proxy (at
>> least
>> >> > nothing checked in). An implementation on how the proxy works can be
>> seen
>> >> > in the PhoneGap Developer App:
>> >> > https://github.com/phonegap/phonegap-app-developer
>> >> >
>> >> > See CB-7043 for progress on tasks regarding this.
>> >> >
>> >> >
>> >> >
>> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
>> >> >
>> >> >> I figure I will write this all up before the official release of
>> iOS 8
>> >> >> next week (probability high) and everyone asking about support.
>> >> >>
>> >> >> It has stalled because the WKWebView cannot load files using the
>> file://
>> >> >> protocol since iOS 8 beta 4.
>> >> >>
>> >> >> This bug has been filed with Apple weeks ago:
>> >> >> http://www.openradar.me/radar?id=5839348817723392
>> >> >>
>> >> >> I even checked WebKit check-ins if there was any progress, so far,
>> no:
>> >> >>
>> >> >>
>> >>
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> >> >> (but it's entirely possible the loading code is in another part of
>> the
>> >> >> tree).
>> >> >>
>> >> >> The alternative is to run a local web server, which works great.
>> >> However,
>> >> >> this will open up a can of worms possibly with Apple, I'm not sure.
>> >> >>
>> >> >> The other interesting tidbit is, with WKWebView, for locally loaded
>> >> files
>> >> >> using the file:// protocol, cross-domain restrictions now apply,
>> unlike
>> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we
>> would
>> >> >> need to proxy these requests (modify xhr.open to go to our proxy,
>> which
>> >> >> requires the local web server).
>> >> >>
>> >> >> The bridge works great, and plugins work great.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >>
>>
>
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it supports
indexedDB
Full results: http://html5te.st/f16d892273bbe5bd

On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve <ag...@chromium.org> wrote:

> :(
>
> Hopefully UIWebView will still get some updates though? E.g. IndexedDb?
>
> On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org> wrote:
> > That's pretty disappointing.
> >
> > Especially with not even a comment from apple.
> > On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
> >
> >> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5
> and
> >> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and
> not by
> >> design) is still there.
> >>
> >> http://www.openradar.me/radar?id=5839348817723392
> >>
> >> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
> >>
> >> > Clarification:
> >> > When I said "The bridge works great, and plugins work great." this was
> >> > for loading a html page and plugins using the file:// protocol using
> >> > WKWebView (as the title of the report implies). The bug I reported
> was on
> >> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in the
> >> bug
> >> > report as well).
> >> >
> >> > *Nothing* has been done using the local web server and proxy (at least
> >> > nothing checked in). An implementation on how the proxy works can be
> seen
> >> > in the PhoneGap Developer App:
> >> > https://github.com/phonegap/phonegap-app-developer
> >> >
> >> > See CB-7043 for progress on tasks regarding this.
> >> >
> >> >
> >> >
> >> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
> >> >
> >> >> I figure I will write this all up before the official release of iOS
> 8
> >> >> next week (probability high) and everyone asking about support.
> >> >>
> >> >> It has stalled because the WKWebView cannot load files using the
> file://
> >> >> protocol since iOS 8 beta 4.
> >> >>
> >> >> This bug has been filed with Apple weeks ago:
> >> >> http://www.openradar.me/radar?id=5839348817723392
> >> >>
> >> >> I even checked WebKit check-ins if there was any progress, so far,
> no:
> >> >>
> >> >>
> >>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >> >> (but it's entirely possible the loading code is in another part of
> the
> >> >> tree).
> >> >>
> >> >> The alternative is to run a local web server, which works great.
> >> However,
> >> >> this will open up a can of worms possibly with Apple, I'm not sure.
> >> >>
> >> >> The other interesting tidbit is, with WKWebView, for locally loaded
> >> files
> >> >> using the file:// protocol, cross-domain restrictions now apply,
> unlike
> >> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we
> would
> >> >> need to proxy these requests (modify xhr.open to go to our proxy,
> which
> >> >> requires the local web server).
> >> >>
> >> >> The bridge works great, and plugins work great.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >>
>

Re: [iOS 8] Status of WKWebView work

Posted by Andrew Grieve <ag...@chromium.org>.
:(

Hopefully UIWebView will still get some updates though? E.g. IndexedDb?

On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams <to...@devgeeks.org> wrote:
> That's pretty disappointing.
>
> Especially with not even a comment from apple.
> On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:
>
>> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and
>> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and not by
>> design) is still there.
>>
>> http://www.openradar.me/radar?id=5839348817723392
>>
>> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
>>
>> > Clarification:
>> > When I said "The bridge works great, and plugins work great." this was
>> > for loading a html page and plugins using the file:// protocol using
>> > WKWebView (as the title of the report implies). The bug I reported was on
>> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in the
>> bug
>> > report as well).
>> >
>> > *Nothing* has been done using the local web server and proxy (at least
>> > nothing checked in). An implementation on how the proxy works can be seen
>> > in the PhoneGap Developer App:
>> > https://github.com/phonegap/phonegap-app-developer
>> >
>> > See CB-7043 for progress on tasks regarding this.
>> >
>> >
>> >
>> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
>> >
>> >> I figure I will write this all up before the official release of iOS 8
>> >> next week (probability high) and everyone asking about support.
>> >>
>> >> It has stalled because the WKWebView cannot load files using the file://
>> >> protocol since iOS 8 beta 4.
>> >>
>> >> This bug has been filed with Apple weeks ago:
>> >> http://www.openradar.me/radar?id=5839348817723392
>> >>
>> >> I even checked WebKit check-ins if there was any progress, so far, no:
>> >>
>> >>
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> >> (but it's entirely possible the loading code is in another part of the
>> >> tree).
>> >>
>> >> The alternative is to run a local web server, which works great.
>> However,
>> >> this will open up a can of worms possibly with Apple, I'm not sure.
>> >>
>> >> The other interesting tidbit is, with WKWebView, for locally loaded
>> files
>> >> using the file:// protocol, cross-domain restrictions now apply, unlike
>> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
>> >> need to proxy these requests (modify xhr.open to go to our proxy, which
>> >> requires the local web server).
>> >>
>> >> The bridge works great, and plugins work great.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>>

Re: [iOS 8] Status of WKWebView work

Posted by Tommy Williams <to...@devgeeks.org>.
That's pretty disappointing.

Especially with not even a comment from apple.
On 10 Sep 2014 05:50, "Shazron" <sh...@gmail.com> wrote:

> Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and
> used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and not by
> design) is still there.
>
> http://www.openradar.me/radar?id=5839348817723392
>
> On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:
>
> > Clarification:
> > When I said "The bridge works great, and plugins work great." this was
> > for loading a html page and plugins using the file:// protocol using
> > WKWebView (as the title of the report implies). The bug I reported was on
> > Device (> iOS beta 4), on Simulator it is *fine* (this info was in the
> bug
> > report as well).
> >
> > *Nothing* has been done using the local web server and proxy (at least
> > nothing checked in). An implementation on how the proxy works can be seen
> > in the PhoneGap Developer App:
> > https://github.com/phonegap/phonegap-app-developer
> >
> > See CB-7043 for progress on tasks regarding this.
> >
> >
> >
> > On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
> >
> >> I figure I will write this all up before the official release of iOS 8
> >> next week (probability high) and everyone asking about support.
> >>
> >> It has stalled because the WKWebView cannot load files using the file://
> >> protocol since iOS 8 beta 4.
> >>
> >> This bug has been filed with Apple weeks ago:
> >> http://www.openradar.me/radar?id=5839348817723392
> >>
> >> I even checked WebKit check-ins if there was any progress, so far, no:
> >>
> >>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> >> (but it's entirely possible the loading code is in another part of the
> >> tree).
> >>
> >> The alternative is to run a local web server, which works great.
> However,
> >> this will open up a can of worms possibly with Apple, I'm not sure.
> >>
> >> The other interesting tidbit is, with WKWebView, for locally loaded
> files
> >> using the file:// protocol, cross-domain restrictions now apply, unlike
> >> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
> >> need to proxy these requests (modify xhr.open to go to our proxy, which
> >> requires the local web server).
> >>
> >> The bridge works great, and plugins work great.
> >>
> >>
> >>
> >>
> >>
> >
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and
used Xcode 6 GM, and the file:// url "bug" (assuming it is a bug and not by
design) is still there.

http://www.openradar.me/radar?id=5839348817723392

On Fri, Sep 5, 2014 at 12:48 PM, Shazron <sh...@gmail.com> wrote:

> Clarification:
> When I said "The bridge works great, and plugins work great." this was
> for loading a html page and plugins using the file:// protocol using
> WKWebView (as the title of the report implies). The bug I reported was on
> Device (> iOS beta 4), on Simulator it is *fine* (this info was in the bug
> report as well).
>
> *Nothing* has been done using the local web server and proxy (at least
> nothing checked in). An implementation on how the proxy works can be seen
> in the PhoneGap Developer App:
> https://github.com/phonegap/phonegap-app-developer
>
> See CB-7043 for progress on tasks regarding this.
>
>
>
> On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:
>
>> I figure I will write this all up before the official release of iOS 8
>> next week (probability high) and everyone asking about support.
>>
>> It has stalled because the WKWebView cannot load files using the file://
>> protocol since iOS 8 beta 4.
>>
>> This bug has been filed with Apple weeks ago:
>> http://www.openradar.me/radar?id=5839348817723392
>>
>> I even checked WebKit check-ins if there was any progress, so far, no:
>>
>> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
>> (but it's entirely possible the loading code is in another part of the
>> tree).
>>
>> The alternative is to run a local web server, which works great. However,
>> this will open up a can of worms possibly with Apple, I'm not sure.
>>
>> The other interesting tidbit is, with WKWebView, for locally loaded files
>> using the file:// protocol, cross-domain restrictions now apply, unlike
>> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
>> need to proxy these requests (modify xhr.open to go to our proxy, which
>> requires the local web server).
>>
>> The bridge works great, and plugins work great.
>>
>>
>>
>>
>>
>

Re: [iOS 8] Status of WKWebView work

Posted by Shazron <sh...@gmail.com>.
Clarification:
When I said "The bridge works great, and plugins work great." this was for
loading a html page and plugins using the file:// protocol using WKWebView
(as the title of the report implies). The bug I reported was on Device (>
iOS beta 4), on Simulator it is *fine* (this info was in the bug report as
well).

*Nothing* has been done using the local web server and proxy (at least
nothing checked in). An implementation on how the proxy works can be seen
in the PhoneGap Developer App:
https://github.com/phonegap/phonegap-app-developer

See CB-7043 for progress on tasks regarding this.



On Fri, Sep 5, 2014 at 11:40 AM, Shazron <sh...@gmail.com> wrote:

> I figure I will write this all up before the official release of iOS 8
> next week (probability high) and everyone asking about support.
>
> It has stalled because the WKWebView cannot load files using the file://
> protocol since iOS 8 beta 4.
>
> This bug has been filed with Apple weeks ago:
> http://www.openradar.me/radar?id=5839348817723392
>
> I even checked WebKit check-ins if there was any progress, so far, no:
>
> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1
> (but it's entirely possible the loading code is in another part of the
> tree).
>
> The alternative is to run a local web server, which works great. However,
> this will open up a can of worms possibly with Apple, I'm not sure.
>
> The other interesting tidbit is, with WKWebView, for locally loaded files
> using the file:// protocol, cross-domain restrictions now apply, unlike
> UIWebView's behaviour. To have the same behaviour as UIWebView, we would
> need to proxy these requests (modify xhr.open to go to our proxy, which
> requires the local web server).
>
> The bridge works great, and plugins work great.
>
>
>
>
>