You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix flaky MMenuItemTest by retaining processing add-on references
The handler in testElementHierarchyInContext_HandledItem was activated by a
HandlerProcessingAddon created via ContextInjectionFactory.make, whose
dependency-injection event subscription holds the add-on only weakly. Because
the test discarded the make() result, the add-on could be garbage collected
before the window context was set, leaving the handler inactive so the command
was not executable and the menu item selection never ran it. Hold strong
references to the created add-ons and remove the ineffective sleep loops that
never addressed this.
0 commit comments