Set the original URL for downloads
Created attachment 74047 [details]
Comment on attachment 74047 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=74047&action=review
It's non-obvious why we can get the originating URL from the back/forward list. The old code in WebFrameLoaderClient.mm included a few comments and a FIXME that make this a little clearer. I think it's worthwhile to reproduce those comments and FIXME here. (I see one of them is now in setOriginalURLForDownload, but the others aren't.)
It might also help to name this function originatingURLFromBackForwardList, since it's only used when there's no referrer.
Committed r72145: <http://trac.webkit.org/changeset/72145>