diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index fb98bdb7a8f..e8421632352 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -5781,7 +5781,6 @@ PresShell::HandleEvent(nsIView *aView, NS_IF_RELEASE(mCurrentEventContent); esm->GetFocusedContent(&mCurrentEventContent); - NS_IF_ADDREF(mCurrentEventContent); esm->GetFocusedFrame(&mCurrentEventFrame); if (!mCurrentEventFrame) { diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index fb98bdb7a8f..e8421632352 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -5781,7 +5781,6 @@ PresShell::HandleEvent(nsIView *aView, NS_IF_RELEASE(mCurrentEventContent); esm->GetFocusedContent(&mCurrentEventContent); - NS_IF_ADDREF(mCurrentEventContent); esm->GetFocusedFrame(&mCurrentEventFrame); if (!mCurrentEventFrame) {