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

Unified Diff: third_party/WebKit/Source/modules/plugins/Plugin.idl

Issue 2575893002: Make item getter and nameditem getter return nullable in Plugin and PluginArray (Closed)
Patch Set: Added links to the spec Created 4 years 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/modules/plugins/Plugin.idl
diff --git a/third_party/WebKit/Source/modules/plugins/Plugin.idl b/third_party/WebKit/Source/modules/plugins/Plugin.idl
index 6f0b0461f3c8a9c0dfe50ce52e0e97f350365d36..f8db9816fe2f1583fd1c1f6090767385c957780a 100644
--- a/third_party/WebKit/Source/modules/plugins/Plugin.idl
+++ b/third_party/WebKit/Source/modules/plugins/Plugin.idl
@@ -18,6 +18,8 @@
Boston, MA 02110-1301, USA.
*/
+// https://html.spec.whatwg.org/multipage/webappapis.html#plugins-2
+
[
ImplementedAs=DOMPlugin
] interface Plugin {
@@ -25,7 +27,7 @@
readonly attribute DOMString filename;
readonly attribute DOMString description;
readonly attribute unsigned long length;
- getter MimeType item([Default=Undefined] optional unsigned long index);
- MimeType namedItem([Default=Undefined] optional DOMString name);
+ getter MimeType? item([Default=Undefined] optional unsigned long index);
+ MimeType? namedItem([Default=Undefined] optional DOMString name);
[NotEnumerable, ImplementedAs=namedItem] getter MimeType ([Default=Undefined] optional DOMString name);
};

Powered by Google App Engine
This is Rietveld 408576698