Bug 51510 - WebKit2 needs a way to return the main resource data
Summary: WebKit2 needs a way to return the main resource data
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 17:20 PST by Darin Adler
Modified: 2010-12-22 17:46 PST (History)
0 users

See Also:


Attachments
Patch (16.32 KB, patch)
2010-12-22 17:25 PST, Darin Adler
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>