Summary: | [chromium] DataTransferItem.webkitGetAsEntry() should synchronously return entry | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kinuko Yasuda <kinuko> | ||||
Component: | WebCore Misc. | Assignee: | Kinuko Yasuda <kinuko> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, dcheng, ericu, levin, ojan, tony, tzik, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 76809 | ||||||
Attachments: |
|
Description
Kinuko Yasuda
2012-05-31 06:45:10 PDT
Created attachment 145083 [details]
Patch
Adding some more filesystem folks to solicit unofficial review. Comment on attachment 145083 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=145083&action=review > Source/WebCore/Modules/filesystem/chromium/DataTransferItemFileSystemChromium.cpp:80 > + // FIXME: This involves synchronous file operation. We need to pass file type data when we dispatch drag event. If the file on disk changes during the drag, should calls to webkitGetAsEntry() return current information? If so, you probably can't do this optimization. Comment on attachment 145083 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=145083&action=review >> Source/WebCore/Modules/filesystem/chromium/DataTransferItemFileSystemChromium.cpp:80 >> + // FIXME: This involves synchronous file operation. We need to pass file type data when we dispatch drag event. > > If the file on disk changes during the drag, should calls to webkitGetAsEntry() return current information? If so, you probably can't do this optimization. Good point, it's a bit questionable. Actually if file<->directory changes we may rather want to return a stale Entry which yields InvalidStateError errors. I'll update the comment and bring it up on the public list. Committed r119371: <http://trac.webkit.org/changeset/119371> |