Allow tests to exercise more control over native context menus
Categories
(Core :: Widget: Cocoa, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(3 files)
At the moment it is not possible for tests to close native context menus, because popupElement.hidePopup()
doesn't do anything. Furthermore, popupElement.state
currently always returns "closed" which is also counter to test expectations.
This bug aims to fix those two issues.
Assignee | ||
Comment 1•4 years ago
|
||
I introduced this assertion in bug 1702041, thinking that cancelTracking would
synchronously call menuDidClose, but that's not the case. The only reason why
this assertion isn't failing today is because we currently only call Close() on
NativeMenu in the "rollup from mousedown" scenario, where the menu has already
been closed by the OS, and we're just waiting to dispatch the MenuClosedAsync()
runnable.
Assignee | ||
Comment 2•4 years ago
|
||
This fixes tests which query popupElement.state.
Only the "root" menupopup is updated; the state for submenus is still always "closed".
Depends on D110973
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D110974
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d792d54ec7cf
https://hg.mozilla.org/mozilla-central/rev/6c92f18636a8
https://hg.mozilla.org/mozilla-central/rev/593f90bd80e8
Description
•