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

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

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index e6d04948a281bcf8e469487c123563ddc1aa6fdb..450202509e5f41bf43f6699548a4a22c7a222d3d 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -460,12 +460,7 @@ void FrameLoader::didBeginDocument(bool dispatch)
for (auto& message : messages)
m_frame->document()->addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, "Error with Suborigin header: " + message));
}
- }
-
- if (m_documentLoader) {
m_frame->document()->clientHintsPreferences().updateFrom(m_documentLoader->clientHintsPreferences());
- LinkLoader::loadLinksFromHeader(m_documentLoader->response().httpHeaderField(HTTPNames::Link), m_documentLoader->response().url(),
- m_frame->document(), NetworkHintsInterfaceImpl(), LinkLoader::OnlyLoadResources);
}
Settings* settings = m_frame->document()->settings();
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | third_party/WebKit/Source/core/loader/LinkHeader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698