WebFrameLoaderClient::dispatchWillSendRequest does if (implementations->willSendRequestFunc) request = (NSURLRequest *)CallResourceLoadDelegate(implementations->willSendRequestFunc, webView, @selector(webView:resource:willSendRequest:redirectResponse:fromDataS request in this case is a ResourceRequest& that is passed in. This means we always create a new ResourceRequest. This can be wasteful in cases where the client decides to return us the exact same NSURLRequest without modifying it.
<rdar://problem/12163053>
Created attachment 160480 [details] Patch
Created attachment 160482 [details] Patch
Comment on attachment 160482 [details] Patch r=me!
Committed r126678: <http://trac.webkit.org/changeset/126678>
That's great!