зеркало из https://github.com/mozilla/gecko-dev.git
More bug 6823. Add comments to keep this problem from happening again.
This commit is contained in:
Родитель
f9c59fc979
Коммит
6f5bf2a2cb
|
@ -2239,6 +2239,10 @@ RDFElementImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
return ret;
|
||||
}
|
||||
|
||||
// We need to explicitly set the target here, because the
|
||||
// DOM implementation will try to compute the target from
|
||||
// the frame. If we don't have a frame (e.g., we're a
|
||||
// menu), then that breaks.
|
||||
nsCOMPtr<nsIPrivateDOMEvent> privateEvent = do_QueryInterface(domEvent);
|
||||
if (privateEvent) {
|
||||
privateEvent->SetTarget(this);
|
||||
|
|
|
@ -2239,6 +2239,10 @@ RDFElementImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
return ret;
|
||||
}
|
||||
|
||||
// We need to explicitly set the target here, because the
|
||||
// DOM implementation will try to compute the target from
|
||||
// the frame. If we don't have a frame (e.g., we're a
|
||||
// menu), then that breaks.
|
||||
nsCOMPtr<nsIPrivateDOMEvent> privateEvent = do_QueryInterface(domEvent);
|
||||
if (privateEvent) {
|
||||
privateEvent->SetTarget(this);
|
||||
|
|
|
@ -2239,6 +2239,10 @@ RDFElementImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
return ret;
|
||||
}
|
||||
|
||||
// We need to explicitly set the target here, because the
|
||||
// DOM implementation will try to compute the target from
|
||||
// the frame. If we don't have a frame (e.g., we're a
|
||||
// menu), then that breaks.
|
||||
nsCOMPtr<nsIPrivateDOMEvent> privateEvent = do_QueryInterface(domEvent);
|
||||
if (privateEvent) {
|
||||
privateEvent->SetTarget(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче