author James Teh <>
Fri, 11 Jan 2019 04:52:50 +0000
changeset 453700 346851347c909e92ed68dc3f104c63ff3e0eaa70
permissions -rw-r--r--
Bug 1514687 - Allow accessibility code to focus XUL radio buttons without selecting them. r=bgrins,smaug,MarcoZ,paolo 1. This requires exposing radiogroup's focusedItem property to C++. Unfortunately, there's no existing equivalent in nsIDOMXULSelectControlItemElement. radiogroup is the only element that needs this, so a new interface has been created for it. 2. Accessibility uses focusedItem instead of selectedItem when setting focus. 3. When an item is focused, accessibility needs to be notified. This is done using a DOMMenuItemActive event. Differential Revision:

/* -*- 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 */

#include "nsISupports.idl"

webidl Element;

[scriptable, uuid(2cc1d24b-ec9f-4e18-aa34-a298a9007f23)]
interface nsIDOMXULRadioGroupElement : nsISupports {
  attribute Element focusedItem;