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

Issue 17436003: Evict CachedResources if they are cancelled due to last client being removed. (Closed)

Created:
7 years, 6 months ago by Nate Chapin
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, gavinp+loader_chromium.org
Visibility:
Public.

Description

Evict CachedResources if they are cancelled due to last client being removed. Currently, it's possible for a CachedResource to be cancelled when the last client is removed, but to remain in the cache in an inconsistent state, such that future requested will hang. Evict the resource from the cache as part of its cancellation. Also, don't start the cancel timer if a load isn't in progress. BUG=251181 TEST=CachedImageTest.CancelOnDetach Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152686

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -0 lines) Patch
M Source/core/loader/cache/CachedImageTest.cpp View 3 chunks +57 lines, -0 lines 0 comments Download
M Source/core/loader/cache/CachedResource.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nate Chapin
I wasn't able to figure out how to reduce the webpage in https://code.google.com/p/chromium/issues/detail?id=251181 to a ...
7 years, 6 months ago (2013-06-18 23:12:10 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/17436003/diff/1/Source/core/loader/cache/CachedResource.cpp File Source/core/loader/cache/CachedResource.cpp (right): https://codereview.chromium.org/17436003/diff/1/Source/core/loader/cache/CachedResource.cpp#newcode165 Source/core/loader/cache/CachedResource.cpp:165: m_cancelTimer.stop(); This doesn't happen automatically when the timer ...
7 years, 6 months ago (2013-06-18 23:15:26 UTC) #2
Nate Chapin
https://codereview.chromium.org/17436003/diff/1/Source/core/loader/cache/CachedResource.cpp File Source/core/loader/cache/CachedResource.cpp (right): https://codereview.chromium.org/17436003/diff/1/Source/core/loader/cache/CachedResource.cpp#newcode165 Source/core/loader/cache/CachedResource.cpp:165: m_cancelTimer.stop(); On 2013/06/18 23:15:26, abarth wrote: > This doesn't ...
7 years, 6 months ago (2013-06-18 23:24:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/17436003/6001
7 years, 6 months ago (2013-06-18 23:26:21 UTC) #4
commit-bot: I haz the power
Change committed as 152686
7 years, 6 months ago (2013-06-19 02:08:01 UTC) #5
scottmg
On 2013/06/19 02:08:01, I haz the power (commit-bot) wrote: > Change committed as 152686 This ...
7 years, 6 months ago (2013-06-21 04:31:11 UTC) #6
Nate Chapin
7 years, 6 months ago (2013-06-21 16:09:35 UTC) #7
Message was sent while issue was closed.
On 2013/06/21 04:31:11, scottmg wrote:
> On 2013/06/19 02:08:01, I haz the power (commit-bot) wrote:
> > Change committed as 152686
> 
> This test is hitting test.com/cancelTest.html through the network when running
> in webkit_unit_tests.
> 
> I'm trying to land a dcheck to prevent this in the future
> (https://codereview.chromium.org/17229012/ and
> https://codereview.chromium.org/16831015/), but would you mind taking a
> look/disabling/reverting this one?

Sure, will make it stop one way or the other today.

Powered by Google App Engine
This is Rietveld 408576698