[Webkit-unassigned] [Bug 94962] New: Don't create a new ResourceRequest if delegate returns the same NSURLRequest we passed it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 24 11:32:28 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=94962

           Summary: Don't create a new ResourceRequest if delegate returns
                    the same NSURLRequest we passed it
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: psolanki at apple.com


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.

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



More information about the webkit-unassigned mailing list