Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 2986043002: The Appcache subresource URL factory needs to inform the URLLoaderClient if there is a failure. (Closed)

Created:
3 years, 4 months ago by ananta
Modified:
3 years, 4 months ago
Reviewers:
michaeln, jam
CC:
chromium-reviews, michaeln, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

The Appcache subresource URL factory needs to inform the URLLoaderClient if there is a failure. Relanding this with the browser test fixes. 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 This reverts commit a08d0fc015c42ce95a104c0f4e3de9448b7721e1. Review-Url: https://codereview.chromium.org/2986043002 Cr-Commit-Position: refs/heads/master@{#490025} Committed: https://chromium.googlesource.com/chromium/src/+/aad9e6266f96e08ae80b9af238a9e6121a28c76e

Patch Set 1 #

Patch Set 2 : Change request count check to be greater than 1. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -14 lines) Patch
A content/browser/appcache/appcache_browsertest.cc View 1 1 chunk +107 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_subresource_url_factory.h View 3 chunks +9 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_subresource_url_factory.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M content/browser/appcache/appcache_url_loader_job.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/appcache/logo.png View Binary file 0 comments Download
A content/test/data/appcache/simple_page.manifest View 1 chunk +2 lines, -0 lines 0 comments Download
A content/test/data/appcache/simple_page_no_manifest.html View 1 chunk +10 lines, -0 lines 0 comments Download
A content/test/data/appcache/simple_page_with_manifest.html View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
ananta
The only change with the previous patch is a check in the test for the ...
3 years, 4 months ago (2017-07-27 18:42:21 UTC) #4
jam
lgtm
3 years, 4 months ago (2017-07-27 21:41:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2986043002/20001
3 years, 4 months ago (2017-07-27 21:42:12 UTC) #9
commit-bot: I haz the power
3 years, 4 months ago (2017-07-27 22:42:10 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/aad9e6266f96e08ae80b9af238a9...

Powered by Google App Engine
This is Rietveld 408576698