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

Issue 3529009: Fix http/tests/appcache/foreign-fallback.html (Closed)

Created:
10 years, 2 months ago by michaeln
Modified:
9 years, 7 months ago
Reviewers:
kinuko
CC:
chromium-reviews, michaeln, darin-cc_chromium.org
Visibility:
Public.

Description

Fix for WKBug 47000: a failure mode given bad content (in an unlikely form). The error occurs when an html page is put in an appcache as a fallback resource (so it's listed in a fallback section), but it contains a manifest attribute that refers to a different manifest file. The system should mark the resource as foreign and exclude it from main resource loads, but it was failing to do so. The fix is to do that. BUG=WK47000 TEST=http/tests/appcache/foreign-fallback.html Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64868

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -42 lines) Patch
M webkit/appcache/appcache.h View 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/appcache/appcache.cc View 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_host.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_host.cc View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_host_unittest.cc View 3 4 2 chunks +42 lines, -1 line 3 comments Download
M webkit/appcache/appcache_request_handler.h View 1 2 3 4 3 chunks +5 lines, -3 lines 2 comments Download
M webkit/appcache/appcache_request_handler.cc View 1 2 3 4 7 chunks +18 lines, -7 lines 3 comments Download
M webkit/appcache/appcache_request_handler_unittest.cc View 3 4 5 6 3 chunks +7 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_service.h View 3 4 1 chunk +3 lines, -12 lines 0 comments Download
M webkit/appcache/appcache_storage.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webkit/appcache/appcache_storage_impl.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 2 3 4 6 chunks +15 lines, -6 lines 2 comments Download
M webkit/appcache/appcache_storage_impl_unittest.cc View 3 4 5 chunks +6 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_unittest.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.cc View 1 2 3 4 7 chunks +11 lines, -4 lines 0 comments Download
M webkit/appcache/mock_appcache_storage_unittest.cc View 3 4 5 6 chunks +7 lines, -0 lines 0 comments Download
M webkit/appcache/webkit_appcache.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
michaeln
10 years, 1 month ago (2010-11-01 19:59:59 UTC) #1
kinuko
LGTM http://codereview.chromium.org/3529009/diff/68004/48006 File webkit/appcache/appcache_host_unittest.cc (right): http://codereview.chromium.org/3529009/diff/68004/48006#newcode218 webkit/appcache/appcache_host_unittest.cc:218: EXPECT_FALSE(host.is_selection_pending()); Do we need to test all of ...
10 years, 1 month ago (2010-11-02 07:47:22 UTC) #2
kinuko
10 years, 1 month ago (2010-11-03 00:25:18 UTC) #3
http://codereview.chromium.org/3529009/diff/68004/48006
File webkit/appcache/appcache_host_unittest.cc (right):

http://codereview.chromium.org/3529009/diff/68004/48006#newcode218
webkit/appcache/appcache_host_unittest.cc:218:
EXPECT_FALSE(host.is_selection_pending());
On 2010/11/02 20:25:36, michaeln wrote:
> On 2010/11/02 07:47:23, Kinuko Yasuda wrote:
> > Do we need to test all of them in both ForeignEntry and ForeignFallbackEntry
> > cases?
> 
> It does seem like some of these are redundant. How 'bout I remove the block of
> checks under the "response as if" comment?

sgtm!

http://codereview.chromium.org/3529009/diff/68004/48007
File webkit/appcache/appcache_request_handler.cc (right):

http://codereview.chromium.org/3529009/diff/68004/48007#newcode100
webkit/appcache/appcache_request_handler.cc:100: // 6.9.6, step 4: If this
results in a redirect to another origin,
On 2010/11/02 20:25:36, michaeln wrote:
> On 2010/11/02 07:47:23, Kinuko Yasuda wrote:
> > (not a review comment) I thought it would be nice if an URL or some pointer
to
> > the spec that has this '6.9.6' is given somewhere...
> 
> Comments that refer section number in the HTML5 draft are are pretty common in
a
> few of the .cc files in the /appcache directory. Most of the numbers are
> probably stale by now since the draft changes and the numbers change with
those
> changes.

That's true. I just wasn't able to find a relevant section whose number is
6.9.6.  Might be nice if section / subsection title was given together with the
numbers for important ones?  (Again, this is not a review comment.)

Powered by Google App Engine
This is Rietveld 408576698