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 2319483002: Turn off isLinkPreload() when used (Closed)

Created:
4 years, 3 months ago by Yoav Weiss
Modified:
4 years, 3 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Turn off isLinkPreload() when used Make sure that isLinkPreload flag is turned off when the resource is used, making sure that it can be cleared earlier. BUG=635483 Committed: https://crrev.com/41924d42a6d0ebdd5e2aebc4a5dcca2d5bc11eb6 Cr-Commit-Position: refs/heads/master@{#419283}

Patch Set 1 #

Patch Set 2 : build issue #

Patch Set 3 : Turn off LinkPreload when resource is used + tests #

Total comments: 1

Patch Set 4 : Added required test && addressed review comments #

Patch Set 5 : change approach regarding making sure counter does not get out of sync #

Patch Set 6 : remove changes in Resource #

Total comments: 2

Patch Set 7 : remove isPreloaded() changes #

Total comments: 2

Patch Set 8 : Fixed tests #

Total comments: 4

Patch Set 9 : Using a mock resource client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -1 line) Patch
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +124 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 67 (41 generated)
Yoav Weiss
Hey Nate and Charlie, Can you take a look and tell me if I'm horribly ...
4 years, 3 months ago (2016-09-07 11:18:42 UTC) #12
Yoav Weiss
On 2016/09/07 11:18:42, Yoav Weiss wrote: > Hey Nate and Charlie, > > Can you ...
4 years, 3 months ago (2016-09-07 11:25:07 UTC) #13
Charlie Harrison
This l-g-t-m but I'll defer to Nate for final word. If this actually solves the ...
4 years, 3 months ago (2016-09-07 15:08:20 UTC) #14
Yoav Weiss
On 2016/09/07 15:08:20, Charlie Harrison wrote: > This l-g-t-m but I'll defer to Nate for ...
4 years, 3 months ago (2016-09-07 15:13:48 UTC) #15
Charlie Harrison
Thanks. Perf dashboard is good but not as good as unit tests which can prevent ...
4 years, 3 months ago (2016-09-07 15:17:58 UTC) #16
Nate Chapin
On 2016/09/07 15:13:48, Yoav Weiss wrote: > On 2016/09/07 15:08:20, Charlie Harrison wrote: > > ...
4 years, 3 months ago (2016-09-07 15:56:42 UTC) #17
Yoav Weiss
On 2016/09/07 15:56:42, Nate Chapin wrote: > On 2016/09/07 15:13:48, Yoav Weiss wrote: > > ...
4 years, 3 months ago (2016-09-08 07:58:52 UTC) #21
Nate Chapin
Thanks for adding for tests, but you didn't test the case I was concerned about: ...
4 years, 3 months ago (2016-09-08 17:26:47 UTC) #24
Yoav Weiss
> Thanks for adding for tests, but you didn't test the case I was concerned ...
4 years, 3 months ago (2016-09-12 07:56:41 UTC) #27
Yoav Weiss
On 2016/09/12 07:56:41, Yoav Weiss wrote: > > Thanks for adding for tests, but you ...
4 years, 3 months ago (2016-09-12 08:47:11 UTC) #32
Nate Chapin
https://codereview.chromium.org/2319483002/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2319483002/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode876 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:876: if (m_preloads->add(resource).isNewEntry) Why doesn't the m_preloads->contains(resource) above catch the ...
4 years, 3 months ago (2016-09-12 20:44:51 UTC) #35
Yoav Weiss
https://codereview.chromium.org/2319483002/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2319483002/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode876 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:876: if (m_preloads->add(resource).isNewEntry) On 2016/09/12 20:44:51, Nate Chapin wrote: > ...
4 years, 3 months ago (2016-09-12 21:01:17 UTC) #36
Charlie Harrison
A few points: - Can you update the title description (and wrap to 80 cols)? ...
4 years, 3 months ago (2016-09-12 21:32:31 UTC) #40
Nate Chapin
On 2016/09/12 07:56:41, Yoav Weiss wrote: > * In Resource.cpp it's used to remove only ...
4 years, 3 months ago (2016-09-12 21:44:52 UTC) #41
Yoav Weiss
On 2016/09/12 21:44:52, Nate Chapin wrote: > On 2016/09/12 07:56:41, Yoav Weiss wrote: > > ...
4 years, 3 months ago (2016-09-12 21:48:13 UTC) #42
Yoav Weiss
https://codereview.chromium.org/2319483002/diff/120001/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp (right): https://codereview.chromium.org/2319483002/diff/120001/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp#newcode583 third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp:583: EXPECT_FALSE(memoryCache()->contains(resource)); On 2016/09/12 21:32:31, Charlie Harrison wrote: > Why ...
4 years, 3 months ago (2016-09-12 21:51:09 UTC) #44
Yoav Weiss
Fixed both tests. PTAL https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h#newcode259 third_party/WebKit/Source/core/fetch/Resource.h:259: void testOnlyWillAddClientOrObserver(PreloadReferencePolicy policy) { willAddClientOrObserver(policy); ...
4 years, 3 months ago (2016-09-13 09:33:18 UTC) #49
Nate Chapin
https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h#newcode259 third_party/WebKit/Source/core/fetch/Resource.h:259: void testOnlyWillAddClientOrObserver(PreloadReferencePolicy policy) { willAddClientOrObserver(policy); } On 2016/09/13 09:33:18, ...
4 years, 3 months ago (2016-09-13 22:34:18 UTC) #52
Yoav Weiss
On 2016/09/13 22:34:18, Nate Chapin wrote: > https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h > File third_party/WebKit/Source/core/fetch/Resource.h (right): > > https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h#newcode259 ...
4 years, 3 months ago (2016-09-14 05:58:20 UTC) #53
Yoav Weiss
On 2016/09/14 05:58:20, Yoav Weiss wrote: > On 2016/09/13 22:34:18, Nate Chapin wrote: > > ...
4 years, 3 months ago (2016-09-16 10:27:30 UTC) #56
Charlie Harrison
non owner lgtm https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h#newcode259 third_party/WebKit/Source/core/fetch/Resource.h:259: void testOnlyWillAddClientOrObserver(PreloadReferencePolicy policy) { willAddClientOrObserver(policy); } ...
4 years, 3 months ago (2016-09-16 12:18:47 UTC) #59
Charlie Harrison
https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2319483002/diff/140001/third_party/WebKit/Source/core/fetch/Resource.h#newcode259 third_party/WebKit/Source/core/fetch/Resource.h:259: void testOnlyWillAddClientOrObserver(PreloadReferencePolicy policy) { willAddClientOrObserver(policy); } On 2016/09/16 12:18:47, ...
4 years, 3 months ago (2016-09-16 12:31:38 UTC) #60
Nate Chapin
lgtm
4 years, 3 months ago (2016-09-16 21:31:33 UTC) #61
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/2319483002/160001
4 years, 3 months ago (2016-09-16 21:35:21 UTC) #63
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-16 21:42:40 UTC) #65
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 21:44:00 UTC) #67
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/41924d42a6d0ebdd5e2aebc4a5dcca2d5bc11eb6
Cr-Commit-Position: refs/heads/master@{#419283}

Powered by Google App Engine
This is Rietveld 408576698