Bug 51510

Summary: WebKit2 needs a way to return the main resource data
Product: WebKit Reporter: Darin Adler <darin>
Component: WebKit2Assignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch andersca: review+

Description Darin Adler 2010-12-22 17:20:55 PST
WebKit2 needs a way to return the main resource data
Comment 1 Darin Adler 2010-12-22 17:25:19 PST
Created attachment 77284 [details]
Patch
Comment 2 Anders Carlsson 2010-12-22 17:37:14 PST
Comment on attachment 77284 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=77284&action=review

> WebKit2/WebProcess/WebPage/WebPage.cpp:952
> +            if (RefPtr<SharedBuffer> buffer = loader->mainResourceData())

It would be better to move the RefPtr<SharedBuffer> declaration out so that it has the same scope as the dataReference object itself.
Comment 3 Darin Adler 2010-12-22 17:46:21 PST
Committed r74527: <http://trac.webkit.org/changeset/74527>