Bug 1587512 - remove nsIXBLAccessible interface r=MarcoZ,Jamie
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 14 Oct 2019 05:40:05 +0000
changeset 497657 22d9340f7161c0977c2cb817bd6928f4f233b4af
parent 497656 770b56e591d5f2ad8c45fe0676c56e4bb84dad03
child 497658 1fa83bfb3fc2db11e5f5db8138840419778ef5d6
push id36694
push useropoprus@mozilla.com
push dateTue, 15 Oct 2019 21:37:43 +0000
treeherdermozilla-central@e3dc5cfd4d36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMarcoZ, Jamie
bugs1587512
milestone71.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 1587512 - remove nsIXBLAccessible interface r=MarcoZ,Jamie Differential Revision: https://phabricator.services.mozilla.com/D48964
accessible/generic/Accessible.cpp
accessible/interfaces/moz.build
accessible/interfaces/nsIXBLAccessible.idl
--- a/accessible/generic/Accessible.cpp
+++ b/accessible/generic/Accessible.cpp
@@ -1,17 +1,15 @@
 /* -*- Mode: C++; 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/. */
 
 #include "Accessible-inl.h"
 
-#include "nsIXBLAccessible.h"
-
 #include "EmbeddedObjCollector.h"
 #include "AccGroupInfo.h"
 #include "AccIterator.h"
 #include "nsAccUtils.h"
 #include "nsAccessibilityService.h"
 #include "ApplicationAccessible.h"
 #include "nsAccessiblePivot.h"
 #include "nsGenericHTMLElement.h"
@@ -135,22 +133,16 @@ Accessible::~Accessible() {
 ENameValueFlag Accessible::Name(nsString& aName) const {
   aName.Truncate();
 
   if (!HasOwnContent()) return eNameOK;
 
   ARIAName(aName);
   if (!aName.IsEmpty()) return eNameOK;
 
-  nsCOMPtr<nsIXBLAccessible> xblAccessible(do_QueryInterface(mContent));
-  if (xblAccessible) {
-    xblAccessible->GetAccessibleName(aName);
-    if (!aName.IsEmpty()) return eNameOK;
-  }
-
   ENameValueFlag nameFlag = NativeName(aName);
   if (!aName.IsEmpty()) return nameFlag;
 
   // In the end get the name from tooltip.
   if (mContent->IsHTMLElement()) {
     if (mContent->AsElement()->GetAttr(kNameSpaceID_None, nsGkAtoms::title,
                                        aName)) {
       aName.CompressWhitespace();
--- a/accessible/interfaces/moz.build
+++ b/accessible/interfaces/moz.build
@@ -31,12 +31,11 @@ XPIDL_SOURCES += [
     'nsIAccessibleTable.idl',
     'nsIAccessibleTableChangeEvent.idl',
     'nsIAccessibleText.idl',
     'nsIAccessibleTextChangeEvent.idl',
     'nsIAccessibleTextRange.idl',
     'nsIAccessibleTypes.idl',
     'nsIAccessibleValue.idl',
     'nsIAccessibleVirtualCursorChangeEvent.idl',
-    'nsIXBLAccessible.idl',
 ]
 
 XPIDL_MODULE = 'accessibility'
deleted file mode 100644
--- a/accessible/interfaces/nsIXBLAccessible.idl
+++ /dev/null
@@ -1,20 +0,0 @@
-/* -*- Mode: C++; 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/. */
-
-#include "nsISupports.idl"
-
-/**
- * XBL controls can implement this interface to provide own implementation of
- * accessible properties.
- */
-[scriptable, builtinclass, uuid(3716eb86-166b-445b-a94a-9b522fee96e6)]
-interface nsIXBLAccessible : nsISupports
-{
-  /**
-   * Return accessible name.
-   */
-  readonly attribute AString accessibleName;
-};