Bug 1456256: Remove ArrayClass from MediaList in Gecko, and other CSSOM bits too in WPT. r=bz
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 23 Apr 2018 22:06:35 +0200
changeset 471336 f43cf565796e9aa7d2a9c463d8afd69c97941086
parent 471335 26b85ad253292610b73779c14549ba5674b898bc
child 471337 958fff8c5f462ae7dc0c1ce7c0dd22faa48b12cf
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1456256
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1456256: Remove ArrayClass from MediaList in Gecko, and other CSSOM bits too in WPT. r=bz MozReview-Commit-ID: 2ZzZwQYyAwR
dom/webidl/MediaList.webidl
testing/web-platform/meta/css/cssom/interfaces.html.ini
testing/web-platform/tests/interfaces/cssom.idl
--- a/dom/webidl/MediaList.webidl
+++ b/dom/webidl/MediaList.webidl
@@ -1,16 +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/. */
 
 // http://dev.w3.org/csswg/cssom/#the-medialist-interface
 
-[ArrayClass]
 interface MediaList {
   // Bug 824857: no support for stringifier attributes yet.
   //   [TreatNullAs=EmptyString]
   // stringifier attribute DOMString        mediaText;
 
   // Bug 824857 should remove this.
   stringifier;
 
--- a/testing/web-platform/meta/css/cssom/interfaces.html.ini
+++ b/testing/web-platform/meta/css/cssom/interfaces.html.ini
@@ -3,22 +3,16 @@
     expected: FAIL
 
   [Stringification of document]
     expected: FAIL
 
   [ProcessingInstruction interface: attribute sheet]
     expected: FAIL
 
-  [StyleSheetList interface: existence and properties of interface prototype object]
-    expected: FAIL
-
-  [CSSRuleList interface: existence and properties of interface prototype object]
-    expected: FAIL
-
   [CSSRule interface: constant MARGIN_RULE on interface object]
     expected: FAIL
 
   [CSSRule interface: constant MARGIN_RULE on interface prototype object]
     expected: FAIL
 
   [CSSRule interface: style_element.sheet.cssRules[0\] must inherit property "MARGIN_RULE" with the proper type (6)]
     expected: FAIL
--- a/testing/web-platform/tests/interfaces/cssom.idl
+++ b/testing/web-platform/tests/interfaces/cssom.idl
@@ -1,16 +1,15 @@
 // GENERATED CONTENT - DO NOT EDIT
 // Content of this file was automatically extracted from the CSS Object Model (CSSOM) spec.
 // See https://drafts.csswg.org/cssom/
 
 typedef USVString CSSOMString;
 
-[Exposed=Window,
- LegacyArrayClass]
+[Exposed=Window]
 interface MediaList {
   stringifier attribute [TreatNullAs=EmptyString] CSSOMString mediaText;
   readonly attribute unsigned long length;
   getter CSSOMString? item(unsigned long index);
   void appendMedium(CSSOMString medium);
   void deleteMedium(CSSOMString medium);
 };
 
@@ -28,18 +27,17 @@ interface StyleSheet {
 [Exposed=Window]
 interface CSSStyleSheet : StyleSheet {
   readonly attribute CSSRule? ownerRule;
   [SameObject] readonly attribute CSSRuleList cssRules;
   unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
   void deleteRule(unsigned long index);
 };
 
-[Exposed=Window,
- LegacyArrayClass]
+[Exposed=Window]
 interface StyleSheetList {
   getter StyleSheet? item(unsigned long index);
   readonly attribute unsigned long length;
 };
 
 partial interface Document {
   [SameObject] readonly attribute StyleSheetList styleSheets;
 };
@@ -47,18 +45,17 @@ partial interface Document {
 [Exposed=Window,
  NoInterfaceObject]
 interface LinkStyle {
   readonly attribute StyleSheet? sheet;
 };
 
 ProcessingInstruction implements LinkStyle;
 
-[Exposed=Window,
- LegacyArrayClass]
+[Exposed=Window]
 interface CSSRuleList {
   getter CSSRule? item(unsigned long index);
   readonly attribute unsigned long length;
 };
 
 [Exposed=Window]
 interface CSSRule {
   const unsigned short STYLE_RULE = 1;