In order to correlate resource load times with resource size, we log when the resource is starting to be downloaded and when the resource is finished loading. In NetworkResourceLoader::didReceiveResponse, we also log the expected resource size. However, we can only log the length if it is provided in Content-Length, which is not always the case. If it's not provided, we end up logging "length = -1". To make up for this, change NetworkResourceLoader::didFinishLoading and WebResourceLoader:: didFinishLoading to log the length once we know it.
Created attachment 307170 [details] Patch
Comment on attachment 307170 [details] Patch Clearing flags on attachment: 307170 Committed r215397: <http://trac.webkit.org/changeset/215397>
All reviewed patches have been landed. Closing bug.