Skip to content

Commit dd51447

Browse files
committed
Bug 1859211: Merge AccessibilityRole and AriaAttributes interfaces into ARIAMixin.webidl to align with the spec. r=nlapre,webidl,edgar
Differential Revision: https://phabricator.services.mozilla.com/D201940
1 parent 7bbebf7 commit dd51447

5 files changed

+9
-28
lines changed

dom/webidl/AriaAttributes.webidl dom/webidl/ARIAMixin.webidl

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
* You can obtain one at http://mozilla.org/MPL/2.0/.
55
*
66
* The origin of this IDL file is
7-
* https://rawgit.com/w3c/aria/master/#AriaAttributes
7+
* https://w3c.github.io/aria/#ARIAMixin
88
*
99
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
1010
* liability, trademark and document use rules apply.
1111
*/
1212

13-
interface mixin AriaAttributes {
13+
interface mixin ARIAMixin {
14+
[Pref="accessibility.ARIAReflection.enabled", CEReactions, SetterThrows]
15+
attribute DOMString? role;
16+
1417
[Pref="accessibility.ARIAReflection.enabled", CEReactions, SetterThrows]
1518
attribute DOMString? ariaAtomic;
1619

dom/webidl/AccessibilityRole.webidl

-16
This file was deleted.

dom/webidl/Element.webidl

+1-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ Element includes NonDocumentTypeChildNode;
311311
Element includes ParentNode;
312312
Element includes Animatable;
313313
Element includes GeometryUtils;
314-
Element includes AccessibilityRole;
315-
Element includes AriaAttributes;
314+
Element includes ARIAMixin;
316315

317316
// https://fullscreen.spec.whatwg.org/#api
318317
partial interface Element {

dom/webidl/ElementInternals.webidl

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ partial interface ElementInternals {
6363
readonly attribute HTMLElement? validationAnchor;
6464
};
6565

66-
ElementInternals includes AccessibilityRole;
67-
ElementInternals includes AriaAttributes;
66+
ElementInternals includes ARIAMixin;
6867

6968
dictionary ValidityStateFlags {
7069
boolean valueMissing = false;

dom/webidl/moz.build

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ with Files("APZTestData.webidl"):
1313
with Files("AccessibleNode.webidl"):
1414
BUG_COMPONENT = ("Core", "Disability Access APIs")
1515

16-
with Files("AccessibilityRole.webidl"):
17-
BUG_COMPONENT = ("Core", "Disability Access APIs")
18-
19-
with Files("AriaAttributes.webidl"):
16+
with Files("ARIAMixin.webidl"):
2017
BUG_COMPONENT = ("Core", "Disability Access APIs")
2118

2219
with Files("Addon*"):
@@ -402,7 +399,6 @@ WEBIDL_FILES = [
402399
"AbortSignal.webidl",
403400
"AbstractRange.webidl",
404401
"AbstractWorker.webidl",
405-
"AccessibilityRole.webidl",
406402
"AddonManager.webidl",
407403
"AnalyserNode.webidl",
408404
"Animatable.webidl",
@@ -415,7 +411,7 @@ WEBIDL_FILES = [
415411
"AppInfo.webidl",
416412
"AppNotificationServiceOptions.webidl",
417413
"APZTestData.webidl",
418-
"AriaAttributes.webidl",
414+
"ARIAMixin.webidl",
419415
"Attr.webidl",
420416
"AudioBuffer.webidl",
421417
"AudioBufferSourceNode.webidl",

0 commit comments

Comments
 (0)