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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.h

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/PreloadRequest.h
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
index 17680d46733c474608a53bd5eb443ce10e9ed8b5..bb2af7022b9230cf74ccf1f12fee7b19e15e459d 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
@@ -95,11 +95,6 @@ class PreloadRequest {
return m_integrityMetadata;
}
- void setScriptHasInvalidTypeOrLanguage() {
- m_hasInvalidTypeOrLanguage = true;
- }
- bool scriptHasInvalidTypeOrLanguage() { return m_hasInvalidTypeOrLanguage; }
-
private:
PreloadRequest(const String& initiatorName,
const TextPosition& initiatorPosition,
@@ -140,9 +135,6 @@ class PreloadRequest {
RequestType m_requestType;
ReferrerPolicy m_referrerPolicy;
IntegrityMetadataSet m_integrityMetadata;
-
- // Used for deprecation warnings.
- bool m_hasInvalidTypeOrLanguage = false;
};
typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream;

Powered by Google App Engine
This is Rietveld 408576698