Summary: | ResourceLoader::resourceData() should not return a PassRefPtr | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | beidson, commit-queue, darin, esprehn+autocc, japhet | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 117289 | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2013-06-06 04:58:28 PDT
Created attachment 203924 [details]
Patch
Comment on attachment 203924 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=203924&action=review > Source/WebCore/ChangeLog:10 > + Change ResourceLoader::resourceData() to return a raw pointer > + instead of a PassRefPtr since we don't want to transfer the > + ownership of the resource data. Also pass a raw pointer to Definitely a good change. > Source/WebCore/ChangeLog:14 > + CachedResource::data() so that the cached resource can decide > + whether to take a reference of the data or not, for example, > + CachedRawResource only takes a reference when buffering policy is > + BufferData. Not sure this change is as good, but it’s OK. Committed r151277: <http://trac.webkit.org/changeset/151277> |