mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Make GetCurrentEventFrame() return null if the shell is being destroyed (don't call GetPrimaryFrameFor()). b=421839 r+sr=roc
This commit is contained in:
parent
c56c851ea5
commit
db78c7fdc2
@ -5448,6 +5448,10 @@ PresShell::Paint(nsIView* aView,
|
||||
nsIFrame*
|
||||
PresShell::GetCurrentEventFrame()
|
||||
{
|
||||
if (NS_UNLIKELY(mIsDestroying)) {
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
if (!mCurrentEventFrame && mCurrentEventContent) {
|
||||
// Make sure the content still has a document reference. If not,
|
||||
// then we assume it is no longer in the content tree and the
|
||||
|
Loading…
Reference in New Issue
Block a user