mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

This again exposes the accelerator (e.g. Ctrl+T for New Tab) for menu items via IAccessible::accName on windows. Bug 1438193 made Accessible::Name const. On Windows, XULMenuitemAccessibleWrap::Name is overridden to append the accelerator to the name. Unfortunately, this override was missed when converting Name to const (and wasn't a compile error because it didn't use the override keyword). As such, this override stopped being called; we always called the const version, since that's the one inherited into AccessibleWrap. Making this const causes this override to be called. MozReview-Commit-ID: 7Gb199mzhHa --HG-- extra : rebase_source : 41d15042a09e4743d127fb12378c775099aa09a0