Re: NSURLProtocol

2015-04-13 Thread Mike Abdullah
Yes, but it’s up to WebKit how it decides to handle the content of the page, and what it agrees to hand off to NSURLProtocol. Perhaps most importantly, the webkit list has more WebKit engineers monitoring it; you’re more likely to get a decent response. > On 13 Apr 2015, at 18:37, danchik wrot

Re: NSURLProtocol

2015-04-13 Thread danchik
question has nothing to do with webkit, the NSURLProtocol is part of foundation library, the fact that it is implemented inside a plugin, and can also be instanciated inside a webview, does not make it a webkit question. > On Apr 12, 2015, at 2:30 AM, Mike Abdullah wrote: > > >> On 12 Apr 201

Re: NSURLProtocol

2015-04-12 Thread Mike Abdullah
> On 12 Apr 2015, at 04:07, danchik wrote: > > an npapi plugin on a web page, it registers a protocol handler I’d say you’re on the wrong list then. This comes down almost entirely to what has been implemented/allowed for Safari, rather than being a general Cocoa question. Possibly the Webki

Re: NSURLProtocol

2015-04-11 Thread danchik
well, the simplest irl example I can think of why you would want an arbitrary protocol is this - imagine you have a plugin on you web page that can generate some custom images for user. Now you want to show those files in img tags (so some one else can nicely wrap them in html). How would you sh

Re: NSURLProtocol

2015-04-11 Thread Dan S
No, I mean I literally register a new protocol: xyz:// There are no typos because it is defined as a @"xyz" in the a single place in the header file, and all of the code refers to it by its define. When you go to my page at https://example.com/mypluginpage.html (for example) the Safari loads t

Re: NSURLProtocol

2015-04-11 Thread danchik
an npapi plugin on a web page, it registers a protocol handler > On Apr 11, 2015, at 2:26 AM, Mike Abdullah wrote: > > >> On 11 Apr 2015, at 02:28, Dan S wrote: >> >> Is behavior of NSURLProtocol changed with Safari 5.1? >> >> I have a plugin that registeres a protocol handler xyz:// for e

Re: NSURLProtocol

2015-04-11 Thread Mike Abdullah
> On 11 Apr 2015, at 02:28, Dan S wrote: > > Is behavior of NSURLProtocol changed with Safari 5.1? > > I have a plugin that registeres a protocol handler xyz:// for example Could clarify what exactly you mean by “plugin” here? > > It succeeds and I can see all the requests to files on web pa