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

Unified Diff: Source/core/frame/UseCounter.cpp

Issue 329223004: [DeprecateAs] if call addEventListener or removeEventListener without enough arguments Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix template condition Created 6 years, 6 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 | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/UseCounter.cpp
diff --git a/Source/core/frame/UseCounter.cpp b/Source/core/frame/UseCounter.cpp
index a0ce4057a5caad02882b1c83873cddf821280ef4..09d2af9a88685d95810c2b8dfdc8787a20902232 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -748,6 +748,10 @@ String UseCounter::deprecationMessage(Feature feature)
case SyncXHRWithCredentials:
return "Setting 'XMLHttpRequest.withCredentials' for synchronous requests is deprecated.";
+ // http://crbug.com/353484
+ case EventTargetMissingArgs:
+ return "Omitting either of the first two arguments of 'EventTarget.addEventListener' or 'EventTarget.removeEventListener' is deprecated, as these are required (http://dom.spec.whatwg.org/#interface-eventtarget).";
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698