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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoader.cpp

Issue 1615703002: Removal of rel=preload link elements should stop the download. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/LinkLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
index 0c7f28eff1f2d78ad0a52ab078f28ca89befe87a..73369a1f89da48d30b4bc4891032ed512dea28b1 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -321,6 +321,8 @@ void LinkLoader::released()
m_prerender->cancel();
m_prerender.clear();
}
+ if (m_linkPreloadResourceClient)
+ m_linkPreloadResourceClient->cancel();
Nate Chapin 2016/01/21 19:03:50 Can you get the correct behavior here by just call
Yoav Weiss 2016/01/21 21:51:20 Didn't really work, but clearResource inside the l
}
DEFINE_TRACE(LinkLoader)

Powered by Google App Engine
This is Rietveld 408576698