RESOLVED FIXED 213259
FileListCreator should only be used for resolving directories
https://bugs.webkit.org/show_bug.cgi?id=213259
Summary FileListCreator should only be used for resolving directories
Andy Estes
Reported 2020-06-16 13:58:12 PDT
FileListCreator should only be used for resolving directories
Attachments
Patch (27.53 KB, patch)
2020-06-16 15:08 PDT, Andy Estes
no flags
Patch (27.53 KB, patch)
2020-06-16 15:54 PDT, Andy Estes
no flags
Patch (27.56 KB, patch)
2020-06-16 17:25 PDT, Andy Estes
no flags
Andy Estes
Comment 1 2020-06-16 13:59:27 PDT
Andy Estes
Comment 2 2020-06-16 15:08:17 PDT Comment hidden (obsolete)
Andy Estes
Comment 3 2020-06-16 15:54:07 PDT
David Kilzer (:ddkilzer)
Comment 4 2020-06-16 17:11:03 PDT
Comment on attachment 402051 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402051&action=review > Source/WebCore/html/FileInputType.cpp:427 > + m_directoryFileListCreator = DirectoryFileListCreator::create([this, weakThis = makeWeakPtr(*this), icon = makeRefPtr(icon)](Ref<FileList>&& fileList) mutable { > + if (!weakThis) > return; > - setFiles(WTFMove(fileList), icon ? RequestIcon::Yes : RequestIcon::No); > - if (icon && !m_fileList->isEmpty() && element()) > - iconLoaded(WTFMove(icon)); > - m_fileListCreator = nullptr; > + didCreateFileList(WTFMove(fileList), WTFMove(icon)); > }); Worth adding an ASSERT() that this runs on the main thread? (Does not have to be addressed to land this since it wasn't present before.)
Andy Estes
Comment 5 2020-06-16 17:15:29 PDT
Comment on attachment 402051 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402051&action=review >> Source/WebCore/html/FileInputType.cpp:427 >> }); > > Worth adding an ASSERT() that this runs on the main thread? (Does not have to be addressed to land this since it wasn't present before.) 👍
Andy Estes
Comment 6 2020-06-16 17:25:01 PDT
EWS
Comment 7 2020-06-16 17:47:15 PDT
Committed r263129: <https://trac.webkit.org/changeset/263129> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402059 [details].
Note You need to log in before you can comment on or make changes to this bug.