bool XULListCellAccessible::Selected() { TableAccessible* table = Table(); NS_ENSURE_TRUE(table, false); // we expect to be in a listbox (table) return table->IsRowSelected(RowIdx()); }