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

Issue 1615703002: Removal of rel=preload link elements should stop the download. (Closed)

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

Description

Removal of rel=preload link elements should stop the download. From the spec: https://w3c.github.io/preload/ "The user agent should abort the request if the href attribute on the link element of an preload link is removed, or its value is set to an empty string." This CL aligns the implementation with that part of the spec. BUG=489646 Committed: https://crrev.com/4548d907a4d13c34bc290c77753c30cf9adaceda Cr-Commit-Position: refs/heads/master@{#370909}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comments and handle href changes #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : added virtual destructors and removed clear() #

Patch Set 5 : Added back clear() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/preload/dynamic_remove_preload_href.html View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/preload/dynamic_removing_preload.html View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 4 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h View 1 2 3 4 4 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Yoav Weiss
Hey Nate. Got another one for you :)
4 years, 11 months ago (2016-01-21 10:54:10 UTC) #2
Nate Chapin
I'd suggested changing the title to "Removal of rel=preload link elements should stop the download." ...
4 years, 11 months ago (2016-01-21 19:03:50 UTC) #3
Yoav Weiss
Changed the subject and moved to clearResource() rather than cancel the loader. Also added href ...
4 years, 11 months ago (2016-01-21 21:51:21 UTC) #5
Nate Chapin
Are there downsides to deleting the LinkPreloadResourceClient instead? https://codereview.chromium.org/1615703002/diff/40001/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/1615703002/diff/40001/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode330 third_party/WebKit/Source/core/loader/LinkLoader.cpp:330: m_linkPreloadResourceClient->clear(); ...
4 years, 11 months ago (2016-01-21 21:53:17 UTC) #6
Nate Chapin
On 2016/01/21 21:53:17, Nate Chapin wrote: > Are there downsides to deleting the LinkPreloadResourceClient instead? ...
4 years, 11 months ago (2016-01-21 21:53:41 UTC) #7
Nate Chapin
Ok, LGTM. I'm surprised deleting the LinkPreloadResourceClient doesn't work. What went wrong exactly?
4 years, 11 months ago (2016-01-21 21:55:44 UTC) #8
Yoav Weiss
On 2016/01/21 21:55:44, Nate Chapin wrote: > Ok, LGTM. I'm surprised deleting the LinkPreloadResourceClient doesn't ...
4 years, 11 months ago (2016-01-21 22:02:28 UTC) #9
Nate Chapin
On 2016/01/21 22:02:28, Yoav Weiss wrote: > On 2016/01/21 21:55:44, Nate Chapin wrote: > > ...
4 years, 11 months ago (2016-01-21 22:09:57 UTC) #10
Yoav Weiss
On 2016/01/21 22:09:57, Nate Chapin wrote: > On 2016/01/21 22:02:28, Yoav Weiss wrote: > > ...
4 years, 11 months ago (2016-01-21 22:17:21 UTC) #11
Yoav Weiss
On 2016/01/21 22:17:21, Yoav Weiss wrote: > On 2016/01/21 22:09:57, Nate Chapin wrote: > > ...
4 years, 11 months ago (2016-01-22 01:48:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615703002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615703002/80001
4 years, 11 months ago (2016-01-22 03:03:26 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-22 05:08:06 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 05:09:05 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4548d907a4d13c34bc290c77753c30cf9adaceda
Cr-Commit-Position: refs/heads/master@{#370909}

Powered by Google App Engine
This is Rietveld 408576698