After convertMainResourceLoadToDownload(), we should wrap up current documentLoader. But if mainResource is cachedResource, mainResourceLoader doesn't exist, ResourceLoader::didFail() won't be hit, so the following DocumentLoader() dataReceived() will still cause the page loading. We add cancelMainResourceLoad() to make sure current page load finished gracefully.
Created attachment 208882 [details] patch
Comment on attachment 208882 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=208882&action=review > Source/WebCore/ChangeLog:13 > + No new tests (OOPS!). Why no regression test? Can we make one?
Comment on attachment 208882 [details] patch Assuming that patches for review since 2013 are stale, r-