mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
temporary fix for reentrancy bug in HandleEvent
This commit is contained in:
parent
5a5e4bee42
commit
6412a66059
@ -2241,8 +2241,12 @@ PresShell::HandleEvent(nsIView *aView,
|
||||
else {
|
||||
nsIContent* targetContent;
|
||||
if (NS_OK == mCurrentEventFrame->GetContent(&targetContent) && nsnull != targetContent) {
|
||||
// XXX Temporary fix for re-entracy isses
|
||||
// temporarily cache the current frame
|
||||
nsIFrame * currentEventFrame = mCurrentEventFrame;
|
||||
rv = targetContent->HandleDOMEvent(*mPresContext, (nsEvent*)aEvent, nsnull,
|
||||
NS_EVENT_FLAG_INIT, aEventStatus);
|
||||
mCurrentEventFrame = currentEventFrame; // other part of re-entracy fix
|
||||
NS_RELEASE(targetContent);
|
||||
}
|
||||
}
|
||||
|
@ -2241,8 +2241,12 @@ PresShell::HandleEvent(nsIView *aView,
|
||||
else {
|
||||
nsIContent* targetContent;
|
||||
if (NS_OK == mCurrentEventFrame->GetContent(&targetContent) && nsnull != targetContent) {
|
||||
// XXX Temporary fix for re-entracy isses
|
||||
// temporarily cache the current frame
|
||||
nsIFrame * currentEventFrame = mCurrentEventFrame;
|
||||
rv = targetContent->HandleDOMEvent(*mPresContext, (nsEvent*)aEvent, nsnull,
|
||||
NS_EVENT_FLAG_INIT, aEventStatus);
|
||||
mCurrentEventFrame = currentEventFrame; // other part of re-entracy fix
|
||||
NS_RELEASE(targetContent);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user