[Webkit-unassigned] [Bug 138171] FormData should not use Document, Page, Chrome and ChromeClient

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 30 00:17:30 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=138171

--- Comment #3 from Alexey Proskuryakov <ap at webkit.org> ---
Comment on attachment 240599
  --> https://bugs.webkit.org/attachment.cgi?id=240599
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=240599&action=review

> Source/WebCore/ChangeLog:11
> +        FormData uses the ChromeClient to ask the WebKit layer whether to
> +        replace upload files with generated files and to actually
> +        generate the replacement files. We could use std::functions passed
> +        to FormData instead of calling ChromeClient methods directly.

This is OK to do, although a better fix would be to stop using the chrome client, and use file replacement code from BlobDataFileReference::generateReplacementFile(). That would require some refactoring, but the code is already in WebCore/platform.

Right now, we potentially archive a bundle twice, first via Blob code path if the file is ever accessed via File API, and then via the chrome client if the file end up being submitted via a form.

I did not review the patch in detail.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141030/ba819b67/attachment-0002.html>


More information about the webkit-unassigned mailing list