Summary: | [FileSystem] Do not call EntriesCallback more than once if there're no entries. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kinuko Yasuda <kinuko> | ||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | dumi, ericu, fishd, jianli, kkanetkar | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Kinuko Yasuda
2010-09-09 15:26:14 PDT
Created attachment 67103 [details]
Patch
Comment on attachment 67103 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=67103&action=prettypatch r=me, but please address the comments before submitting. > WebCore/fileapi/FileSystemCallbacks.cpp:150 > + if (!hasMore && hadEntries) { i don't think you need the hadEntries variable. can you just use: if (!hasMore && !m_entries->isEmpty()) and clear m_entries after the if-block? > WebCore/fileapi/FileSystemCallbacks.cpp:151 > // If there're no more entries, call back once more with an empty array. update the comment please. Committed r67220: <http://trac.webkit.org/changeset/67220> |