Open Bug 1864953 Opened 7 months ago Updated 7 months ago

Hidden and disabled states of <menuitem>s do not reliably update along with their related <command>

Categories

(Firefox :: Menus, enhancement)

Desktop
All
enhancement

Tracking

()

People

(Reporter: twisniewski, Unassigned)

References

Details

While working on bug 1852340, I'm adding this <menuitem> to the Help menu, with a related <command>:

<menuitem id="help_reportBrokenSite"
          command="cmd_reportBrokenSite"
          data-l10n-id="menu-report-broken-site"
          appmenu-data-l10n-id="menu-report-broken-site"/>

However, if my code toggles the hidden or disabled attributes of the <command>, the next time I open the Help menu to see the menuitem, it is still not updated to mirror the <command>'s new state. But if I open the menu a second time, it is finally updated.

To work around this, I am also updating the <menuitem>'s hidden and disabled properties, but it would be good to figure this out.

Summary: Hidden and disabled states of <menuitem>s do not reliably udpte along with their related <command> → Hidden and disabled states of <menuitem>s do not reliably update along with their related <command>
You need to log in before you can comment on or make changes to this bug.