From 69c5a67f25b2b43675c767576545fb01501410b4 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Wed, 28 Jun 2017 02:22:03 +0200 Subject: [PATCH] Backed out changeset 991cb2487be8 (bug 1375940) --- layout/base/PresShell.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index 6544046e2e77..074d3fd67d67 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -7949,8 +7949,7 @@ PresShell::HandleEventWithTarget(WidgetEvent* aEvent, nsIFrame* aFrame, if (aContent) { nsIDocument* doc = aContent->GetComposedDoc(); NS_ASSERTION(doc, "event for content that isn't in a document"); - // NOTE: We don't require that the document still have a PresShell. - // See bug 1375940. + NS_ASSERTION(!doc || doc->GetShell() == this, "wrong shell"); } #endif NS_ENSURE_STATE(!aContent || aContent->GetComposedDoc() == mDocument);