DescriptionThe Appcache subresource URL factory needs to inform the URLLoaderClient if there is a failure.
Failure cases include, an invalid AppCacheHost instance, failure to create a request handler, etc.
We already notify the client about the latter case above. Need to do this for an invalid host as well.
This caused the w3schools AppCache test page to spin indefinitely if we pass in an invalid URL.
Additionally on the renderer side we need to reset the cached URLLoaderFactory pointer if a null factory
is passed in the CommitNavigation IPC. This ensures that the request hits the default network loader.
BUG=715632
TEST=Covered by browser test. AppCacheNetworkServiceBrowserTest.VerifySubresourceFactoryClearedOnNewNavigation
Review-Url: https://codereview.chromium.org/2991443002
Cr-Commit-Position: refs/heads/master@{#489710}
Committed: https://chromium.googlesource.com/chromium/src/+/4a9dd98efab25e78f28b800520c1868aaad2cb1f
Patch Set 1 #Patch Set 2 : Format changes #
Total comments: 2
Patch Set 3 : Add browser test for verifying that navigating to a TLD within the same host which had an AppCache … #
Total comments: 8
Patch Set 4 : Fix compile failures and address review comments #Patch Set 5 : Provide a way to turn off certain errors like missing host etc in the factory for tests. #
Total comments: 2
Patch Set 6 : Address review comments. Remove the SetForTesting method added in the previous patch and register a… #Patch Set 7 : Disable the test for Android #Messages
Total messages: 49 (33 generated)
|