mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 1082510 - When we detect a chrome popup at the current event coordinates and remote content has the mouse captured, release capture. r=Enn
This commit is contained in:
parent
d2e1438a01
commit
d6d7d5c6d6
@ -7368,6 +7368,12 @@ PresShell::HandleEvent(nsIFrame* aFrame,
|
||||
frame == mFrameConstructor->GetRootFrame()) {
|
||||
nsIFrame* popupFrame =
|
||||
nsLayoutUtils::GetPopupFrameForEventCoordinates(rootPresContext, aEvent);
|
||||
// If a remote browser is currently capturing input break out if we
|
||||
// detect a chrome generated popup.
|
||||
if (popupFrame && capturingContent &&
|
||||
EventStateManager::IsRemoteTarget(capturingContent)) {
|
||||
capturingContent = nullptr;
|
||||
}
|
||||
// If the popupFrame is an ancestor of the 'frame', the frame should
|
||||
// handle the event, otherwise, the popup should handle it.
|
||||
if (popupFrame &&
|
||||
|
Loading…
Reference in New Issue
Block a user