Bug 25909
Summary: | eventSender.beginDragWithFiles drags with wrong paths from http tests | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | mrowe, oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
Bug Depends on: | 25852 | ||
Bug Blocks: |
Eric Seidel (no email)
eventSender.beginDragWithFiles drags with wrong paths from http tests
The new eventSender.beginDragWithFiles takes relative paths.
These are resolved against the loaded document.
When you run an http test, the path passed to DumpRenderTree is a URL pointing to localhost, so the to-be-dragged files are also urls pointing to local host. We can't stat non-file urls, so the stat fails and File.fileSize returns 0.
The only way I can think to fix this is if we pass some sort of absolute path to DumpRenderTree in addition to the http://localhost test url, so that DRT can know how to resolve these paths to on-disk files for dragging.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
This support was added in bug 25852.
Eric Seidel (no email)
We can work around this limitation for the moment using http/local tests. http/local tests are loaded as normal on-disk tests, but the http server is running. So we can have them load remote iframes off of localhost/