WebKitDownload was written before we had WebKitNetworkResponse, so some functionality, such as accessing the response headers is still missing up to now. By using, and exposing a WebKitNetworkResponse object, we can fix this.
Created attachment 41826 [details]
Here's my proposed solution.
Comment on attachment 41826 [details]
Landed as r50060.