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

Issue 2174563003: Clear all preloads when document is detached (Closed)

Created:
4 years, 5 months ago by Yoav Weiss
Modified:
4 years, 4 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear all preloads when document is detached Currently link rel preload based preloads are never evicted from MemoryCache. This fixes that by evicting all preloads when the document is detached. This also fixes issues found when Link preloads were not reused after DCL due to bugs inside clearPreloads(). BUG=627026 Committed: https://crrev.com/57696ed320e6ed0263b7c447ef17bb6bef5236ca Cr-Commit-Position: refs/heads/master@{#410008}

Patch Set 1 #

Patch Set 2 : less dumb way to do the same thing #

Patch Set 3 : Fix issues inside clearPreloads and add tests #

Total comments: 9

Patch Set 4 : Review comments #

Messages

Total messages: 24 (14 generated)
Yoav Weiss
Hey csharrison! :) I still need to add tests here, but can you take a ...
4 years, 5 months ago (2016-07-22 10:36:48 UTC) #3
Charlie Harrison
hmm for some reason I thought that ResourceFetcher was not holding strong references to preloads ...
4 years, 5 months ago (2016-07-22 12:00:34 UTC) #4
Charlie Harrison
hmm for some reason I thought that ResourceFetcher was not holding strong references to preloads ...
4 years, 5 months ago (2016-07-22 12:00:36 UTC) #5
Yoav Weiss
On 2016/07/22 12:00:36, csharrison wrote: > hmm for some reason I thought that ResourceFetcher was ...
4 years, 4 months ago (2016-08-04 05:19:15 UTC) #9
Charlie Harrison
Tests look great. Thanks! https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html File third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html (right): https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html#newcode6 third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html:6: var t = async_test('Test that ...
4 years, 4 months ago (2016-08-04 18:10:26 UTC) #12
Yoav Weiss
Thanks for reviewing! :) https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html File third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html (right): https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html#newcode6 third_party/WebKit/LayoutTests/http/tests/preload/memcache_eviction_nopreload.html:6: var t = async_test('Test that ...
4 years, 4 months ago (2016-08-04 20:26:14 UTC) #15
Charlie Harrison
non-owner lgtm https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2174563003/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode897 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:897: if (!m_preloads->size()) On 2016/08/04 20:26:14, Yoav Weiss ...
4 years, 4 months ago (2016-08-04 20:59:57 UTC) #16
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/2174563003/60001
4 years, 4 months ago (2016-08-05 06:54:29 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-05 07:04:01 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 07:06:16 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/57696ed320e6ed0263b7c447ef17bb6bef5236ca
Cr-Commit-Position: refs/heads/master@{#410008}

Powered by Google App Engine
This is Rietveld 408576698