Bug 1456256: Remove ArrayClass from MediaList in Gecko, and other CSSOM bits too in WPT. r?bz
MozReview-Commit-ID: 2ZzZwQYyAwR
--- 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;