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

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

Issue 2026673003: Add Document encoding to header preloaded requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/preload/resources/charset.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aa7ef6b4d37eb530c9af376b50b66fd50b02bfc9..86fb25aa5a5f72784bcba715fe2c795023f457e7 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -288,7 +288,7 @@ static Resource* preloadIfNeeded(const LinkRelAttribute& relAttribute, const KUR
}
ResourceRequest resourceRequest(document.completeURL(href));
ResourceFetcher::determineRequestContext(resourceRequest, resourceType, false);
- FetchRequest linkRequest(resourceRequest, FetchInitiatorTypeNames::link);
+ FetchRequest linkRequest(resourceRequest, FetchInitiatorTypeNames::link, document.encodingName());
linkRequest.setPriority(document.fetcher()->loadPriority(resourceType, linkRequest));
if (crossOrigin != CrossOriginAttributeNotSet)
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/preload/resources/charset.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698