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

Issue 2039893002: ResourceFetcher: fix an assertion failure on defered resource revalidation (Closed)

Created:
4 years, 6 months ago by Takashi Toyoshima
Modified:
4 years, 6 months ago
Reviewers:
Yoav Weiss, Nate Chapin
CC:
chromium-reviews, tyoshino+watch_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ResourceFetcher: fix an assertion failure on defered resource revalidation On revalidating resources, e.g. for page reloads, if two initiators exist and the loading is defered, both initiators get 'Revalidate' revalidation policy in ResourceFetcher::requestResource() then it results in an assertion failure to initialize the resource as a cache validator. BUG=616358 Committed: https://crrev.com/11fe1836e4c10b169106f39839504517e0d68a08 Cr-Commit-Position: refs/heads/master@{#398468}

Patch Set 1 #

Total comments: 1

Patch Set 2 : add unit tests #

Patch Set 3 : make asan happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -1 line) Patch
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 2 chunks +59 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Takashi Toyoshima
https://codereview.chromium.org/2039893002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2039893002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode806 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:806: DCHECK(existingResource->stillNeedsLoad()); existingResource->canUseCacheValidator() ensures the Status is not Pending, and ...
4 years, 6 months ago (2016-06-06 13:14:19 UTC) #1
Yoav Weiss
On 2016/06/06 13:14:19, Takashi Toyoshima wrote: > https://codereview.chromium.org/2039893002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp > File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): > > https://codereview.chromium.org/2039893002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode806 ...
4 years, 6 months ago (2016-06-06 14:51:26 UTC) #4
Takashi Toyoshima
I added unit tests at Patch Set 2.
4 years, 6 months ago (2016-06-07 05:48:52 UTC) #5
Takashi Toyoshima
OK, memory leak in the test should be fixed. Can you take a look at ...
4 years, 6 months ago (2016-06-07 09:05:37 UTC) #6
Yoav Weiss
On 2016/06/07 09:05:37, Takashi Toyoshima wrote: > OK, memory leak in the test should be ...
4 years, 6 months ago (2016-06-07 12:55:50 UTC) #7
Yoav Weiss
On 2016/06/07 12:55:50, Yoav Weiss wrote: > On 2016/06/07 09:05:37, Takashi Toyoshima wrote: > > ...
4 years, 6 months ago (2016-06-07 12:57:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039893002/40001
4 years, 6 months ago (2016-06-08 02:26:35 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-08 03:12:11 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 03:15:07 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/11fe1836e4c10b169106f39839504517e0d68a08
Cr-Commit-Position: refs/heads/master@{#398468}

Powered by Google App Engine
This is Rietveld 408576698