Bug 1930931 - Make the dragging interaction still happens when the event target frame is moved/destroyed upon mousedown r=masayuki,dom-core

Differential Revision: https://phabricator.services.mozilla.com/D238318
This commit is contained in:
Sean Feng
2025-02-21 18:25:06 +00:00
parent aa102388a8
commit d8ecdd8d22
5 changed files with 84 additions and 1 deletions

View File

@@ -2230,6 +2230,9 @@ void PresShell::NotifyDestroyingFrame(nsIFrame* aFrame) {
}
}
EventStateManager* const esm = mPresContext->EventStateManager();
esm->NotifyDestroyingFrameForGesture(aFrame);
mFramesToDirty.Remove(aFrame);
if (ScrollContainerFrame* scrollContainerFrame = do_QueryFrame(aFrame)) {