RESOLVED FIXED 185344
Cleanup XMLHttpRequestUpload a little
https://bugs.webkit.org/show_bug.cgi?id=185344
Summary Cleanup XMLHttpRequestUpload a little
Sam Weinig
Reported 2018-05-04 22:45:27 PDT
Cleanup XMLHttpRequestUpload a little
Attachments
Patch (6.90 KB, patch)
2018-05-04 22:48 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2018-05-04 22:48:18 PDT
Yusuke Suzuki
Comment 2 2018-05-04 23:53:00 PDT
Comment on attachment 339636 [details] Patch r=me
WebKit Commit Bot
Comment 3 2018-05-05 16:45:20 PDT
Comment on attachment 339636 [details] Patch Clearing flags on attachment: 339636 Committed r231398: <https://trac.webkit.org/changeset/231398>
WebKit Commit Bot
Comment 4 2018-05-05 16:45:21 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 5 2018-05-06 17:01:29 PDT
Comment on attachment 339636 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339636&action=review > Source/WebCore/xml/XMLHttpRequestUpload.h:45 > + EventTargetInterface eventTargetInterface() const override { return XMLHttpRequestUploadEventTargetInterfaceType; } > + ScriptExecutionContext* scriptExecutionContext() const override { return m_xmlHttpRequest.scriptExecutionContext(); } I’d have made these private, and used final instead of override. > Source/WebCore/xml/XMLHttpRequestUpload.h:54 > + XMLHttpRequest& m_xmlHttpRequest; We should rename this to m_request or m_underlyingRequest. I think maybe the member function too. > Source/WebCore/xml/XMLHttpRequestUpload.h:57 > + bool m_lengthComputable { false }; > + unsigned long long m_loaded { 0 }; > + unsigned long long m_total { 0 }; I really don’t like these names, but they are straight out of the progress event specification. I kind of wish this was a ProgressEvent::Init structure. But that also has Event::Init as its base class.
Radar WebKit Bug Importer
Comment 6 2018-05-06 17:02:26 PDT
Note You need to log in before you can comment on or make changes to this bug.