Bug 1270366. PluginArray and Plugin should have unenumerable named properties. r=bkelly
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 31 Aug 2016 10:57:40 -0400
changeset 322593 593a22cf5376ca1248fb7c0d2ff9d3447368067b
parent 322592 3a28c54656b33b471550a40af91481f66f48b518
child 322594 e16d1a881481d7d83493481d9cc2c4ef1e6b9a36
child 322724 b008ef304e346b679dc80f070ba9dab7bd6f9a83
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewersbkelly
bugs1270366
milestone53.0a1
Bug 1270366. PluginArray and Plugin should have unenumerable named properties. r=bkelly
dom/webidl/Plugin.webidl
dom/webidl/PluginArray.webidl
--- a/dom/webidl/Plugin.webidl
+++ b/dom/webidl/Plugin.webidl
@@ -1,17 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-// [LegacyUnenumerableNamedProperties]
-// Named properties enumerable for now; see
-// https://bugzilla.mozilla.org/show_bug.cgi?id=1270366
+[LegacyUnenumerableNamedProperties]
 interface Plugin {
   readonly attribute DOMString description;
   readonly attribute DOMString filename;
   readonly attribute DOMString version;
   readonly attribute DOMString name;
 
   readonly attribute unsigned long length;
   getter MimeType? item(unsigned long index);
--- a/dom/webidl/PluginArray.webidl
+++ b/dom/webidl/PluginArray.webidl
@@ -1,17 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-// [LegacyUnenumerableNamedProperties]
-// Named properties enumerable for now; see
-// https://bugzilla.mozilla.org/show_bug.cgi?id=1270366
+[LegacyUnenumerableNamedProperties]
 interface PluginArray {
   readonly attribute unsigned long length;
 
   getter Plugin? item(unsigned long index);
   getter Plugin? namedItem(DOMString name);
 
   void refresh(optional boolean reloadDocuments = false);
 };