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

Unified Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2301323003: Add deprecation warning for script fetches with invalid types (Closed)
Patch Set: Update deprecation message with chromestatus entry Created 4 years, 3 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/frame/Deprecation.cpp
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index 9a3def4c1f871e2f73a635babb7ee67c40c38a90..9debda427c03f174081b97f6921f786a1dbaebfc 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -376,6 +376,9 @@ String Deprecation::deprecationMessage(UseCounter::Feature feature)
case UseCounter::WebAudioAutoplayCrossOriginIframe:
return willBeRemoved("Web Audio autoplay (without user gesture) from cross-origin iframes", 55, "6406908126691328");
+ case UseCounter::ScriptInvalidTypeOrLanguage:
+ return String::format("Fetching scripts with an invalid type/language attributes is deprecated and will be removed in %s. See https://www.chromestatus.com/feature/5760718284521472 for more details.", milestoneString(56));
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698