From 0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Apr 2024 17:18:09 +0200 Subject: Merging upstream version 115.9.0esr. Signed-off-by: Daniel Baumann --- widget/cocoa/MOZMenuOpeningCoordinator.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widget/cocoa/MOZMenuOpeningCoordinator.mm') diff --git a/widget/cocoa/MOZMenuOpeningCoordinator.mm b/widget/cocoa/MOZMenuOpeningCoordinator.mm index 3ac4d8385f..bc78b3778c 100644 --- a/widget/cocoa/MOZMenuOpeningCoordinator.mm +++ b/widget/cocoa/MOZMenuOpeningCoordinator.mm @@ -122,6 +122,9 @@ static BOOL sNeedToUnwindForMenuClosing = NO; - (void)cancelAsynchronousOpening:(NSInteger)aHandle { if (mPendingOpening && mPendingOpening.handle == aHandle) { + [NSObject cancelPreviousPerformRequestsWithTarget:self + selector:@selector(_runMenu) + object:nil]; [mPendingOpening release]; mPendingOpening = nil; } -- cgit v1.2.3