[Webkit-unassigned] [Bug 24904] Add a defaultMimeType to ResourceRequest

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 29 03:15:52 PDT 2009


------- Comment #8 from ap at webkit.org  2009-03-29 03:15 PDT -------
See WebFrameLoaderClient::dispatchWillSendRequest() in WebFrameLoaderClient.mm:

    if (implementations->willSendRequestFunc)
        request = (NSURLRequest
*)CallResourceLoadDelegate(implementations->willSendRequestFunc, webView,
[webView _objectForIdentifier:identifier], request.nsURLRequest(),
redirectResponse.nsURLResponse(), dataSource(loader));

If the client implements a willSendRequest delegate method, then
ResourceRequest will be completely re-created from NSURLRequest.

> What's the right way to associate more data with a ResourceRequest?

My understanding is that the only cross-platform way is to provide the data on
demand via a ResourceHandleClient method.

If the data is not cross-platform, and the platform doesn't implement Mac-style
FrameLoaderClient callbacks, then it should be possible to add the data to the
platform's ResourceRequest.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list