Bug 1249930 - menupoup shouldn't look for children in XBL anonymous content, r=davidb
authorAlexander Surkov <surkov.alexander@gmail.com>
Tue, 23 Feb 2016 11:04:10 -0500
changeset 321531 51c24b85e158132e4a6eb8ec09d95126c5ca07d2
parent 321529 27126257aeddfe02274e52eb7c5d1c343ab596a4
child 321532 bf62a6c05fa7404152a5fb2a55485e967fbb0fa7
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidb
bugs1249930
milestone47.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 1249930 - menupoup shouldn't look for children in XBL anonymous content, r=davidb
accessible/xul/XULMenuAccessible.cpp
--- a/accessible/xul/XULMenuAccessible.cpp
+++ b/accessible/xul/XULMenuAccessible.cpp
@@ -402,16 +402,18 @@ XULMenupopupAccessible::
   nsMenuPopupFrame* menuPopupFrame = do_QueryFrame(GetFrame());
   if (menuPopupFrame && menuPopupFrame->IsMenu())
     mType = eMenuPopupType;
 
   // May be the anonymous <menupopup> inside <menulist> (a combobox)
   mSelectControl = do_QueryInterface(mContent->GetFlattenedTreeParent());
   if (!mSelectControl)
     mGenericTypes &= ~eSelect;
+
+  mStateFlags |= eNoXBLKids;
 }
 
 uint64_t
 XULMenupopupAccessible::NativeState()
 {
   uint64_t state = Accessible::NativeState();
 
 #ifdef DEBUG