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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp

Issue 2479703003: Stop preloading scripts that have invalid type/language attributes (Closed)
Patch Set: Created 4 years, 1 month 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/html/parser/HTMLResourcePreloader.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
index 1eb352eee68676dae629eb26b0f80330984aba21..00e50fe2679784ed3c4cbf4f11eb21708de00405 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
@@ -94,11 +94,6 @@ void HTMLResourcePreloader::preload(
("WebCore.PreloadDelayMs", 0, 2000, 20));
preloadDelayHistogram.count(duration);
- if (preload->scriptHasInvalidTypeOrLanguage()) {
- Deprecation::countDeprecation(m_document,
- UseCounter::ScriptInvalidTypeOrLanguage);
- }
-
Resource* resource =
m_document->loader()->startPreload(preload->resourceType(), request);
if (resource && preload->resourceType() == Resource::CSSStyleSheet) {

Powered by Google App Engine
This is Rietveld 408576698