Issue #2515 - Remove mForceContentDispatch and mNoContentDispatch

This commit is contained in:
Moonchild 2024-07-25 15:33:07 +02:00 committed by roytam1
commit 7e3f0d53a2
10 changed files with 3 additions and 68 deletions

View file

@ -7270,11 +7270,6 @@ nsDocument::GetEventTargetParent(EventChainPreVisitor& aVisitor)
aVisitor.mCanHandle = true;
// Middle/right click shouldn't dispatch click event, use auxclick to instead.
Element* docElement = GetRootElement();
if (docElement && docElement->IsXULElement()) {
// FIXME! This is a hack to make middle mouse paste working also in Editor.
// Bug 329119
aVisitor.mForceContentDispatch = true;
}
// Load events must not propagate to |window| object, see bug 335251.
if (aVisitor.mEvent->mMessage != eLoad) {