Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread Sam Weinig
It doesn't look like they have have exposed API to do this yet. Please file an enhancement request at bugs.webkit.org. -Sam On May 24, 2011, at 8:33 PM, naren.me...@gmail.com wrote: > Thanks for the response, Sam. > > On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wrote: >> It depends what por

Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread Aneesh Bhasin
Hi.. On Wed, May 25, 2011 at 9:03 AM, wrote: > Thanks for the response, Sam. > > On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wrote: >> It depends what port you are using, > > I am using WebKit2-GTK port. > Any idea, how it can be done in that ? > > -- Naren Adding webkit-gtk mailing list in

Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread naren . mehra
Thanks for the response, Sam. On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wrote: > It depends what port you are using, I am using WebKit2-GTK port. Any idea, how it can be done in that ? -- Naren > but the general idea is that you should be able to get a MIME type from the > WKURLResponseRef

Re: [webkit-dev] SVG Fonts in webkit

2011-05-24 Thread Saba Taseer
It executes the code in the following #if ENable but the if statement returns false. Thus I presume that SVG_FONTS is enabled. It is instead going to drawSimpleText. #if ENABLE(SVG_FONTS)if (primaryFont()->isSVGFont()) { drawTextUsingSVGFont(context, run, point, from, to);ret

Re: [webkit-dev] SVG Fonts in webkit

2011-05-24 Thread Rob Buis
Hello Saba, On 24 May 2011 17:16, Saba Taseer wrote: > I was trying to study fonts rendering in Webkit. I was successfully able to > see the path html text tag follows to be drawn in inlinetextbox.cpp. Then I > tried to study SVG fonts rendering in webkit, but I didnot reach any of > SVGFont elem

[webkit-dev] SVG Fonts in webkit

2011-05-24 Thread Saba Taseer
I was trying to study fonts rendering in Webkit. I was successfully able to see the path html text tag follows to be drawn in inlinetextbox.cpp. Then I tried to study SVG fonts rendering in webkit, but I didnot reach any of SVGFont element related calls. Can some one please explain how SVG font

[webkit-dev] Custom scheme handlers & XHR [plain text]

2011-05-24 Thread Joe Andrieu
[my apologies that last email got completely scrubbed in the archives] Howdy, I've been working with the Chromium Embedded Framework, trying to get a custom scheme handler to process AJAX queries from a page loaded from a file: URL, i.e., from a null origin. The main motivation is that I want

Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread Sam Weinig
It depends what port you are using, but the general idea is that you should be able to get a MIME type from the WKURLResponseRef. On the Mac for instance, we can get an NSURLReponse out of a WKURLResponseRef using WKURLResponseCopyNSURLResponse and copy the MIME type from that. -Sam On May 2

Re: [webkit-dev] Early deletion of DocumentLoader instances

2011-05-24 Thread Darin Adler
On May 24, 2011, at 6:56 AM, Raphael Kubo da Costa wrote: > Darin Adler writes: > >> Also, there is a Document::setDocumentLoader function, but nobody ever calls >> it. > > I could submit a patch to remove it, if that's desirable. Yes, we do want to remove it. >> What we need are some test c

Re: [webkit-dev] Early deletion of DocumentLoader instances

2011-05-24 Thread Raphael Kubo da Costa
Darin Adler writes: > On May 23, 2011, at 1:34 PM, Raphael Kubo da Costa wrote: > >> While working on the EFL port, I've noticed that sometimes a >> FrameLoader's DocumentLoader ends up being deleted too early >> (FrameLoader::setDocumentLoader causes the current DocumentLoader to >> be >> deref'

[webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread naren . mehra
Hi, I am trying to implement the functionality for decidePolicyForResponse function. For that, I require the mimeType based on the WKURLResponseRef. In previous implementation of WebKit we used to pass the mimeType explicitly as one of the parameters of the callback function. But it has been chan

Re: [webkit-dev] New Feature - Resource Timing

2011-05-24 Thread Tony Gentilcore
On Tue, May 24, 2011 at 8:14 AM, Maciej Stachowiak wrote: > > On May 23, 2011, at 8:16 AM, Patrick Mueller wrote: > > > On 5/20/11 12:46 PM, Alexey Proskuryakov wrote: > >> What incentive will users have to enable it? For other privacy sensitive > >> features (be it cookies or geolocation), there

Re: [webkit-dev] New Feature - Resource Timing

2011-05-24 Thread Maciej Stachowiak
On May 23, 2011, at 8:16 AM, Patrick Mueller wrote: > On 5/20/11 12:46 PM, Alexey Proskuryakov wrote: >> What incentive will users have to enable it? For other privacy sensitive >> features (be it cookies or geolocation), there is a clear benefit to gain >> from them. > > This is a developer-m