Bug 1375940 - Part 2: Fix an assertion in PresShell::HandleEventWithTarget, r=smaug

MozReview-Commit-ID: 4hRjlgbLDA8
This commit is contained in:
Michael Layzell 2017-06-23 15:41:04 -04:00
Родитель 068e7442ed
Коммит 381991e752
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -7949,7 +7949,8 @@ PresShell::HandleEventWithTarget(WidgetEvent* aEvent, nsIFrame* aFrame,
if (aContent) {
nsIDocument* doc = aContent->GetComposedDoc();
NS_ASSERTION(doc, "event for content that isn't in a document");
NS_ASSERTION(!doc || doc->GetShell() == this, "wrong shell");
// NOTE: We don't require that the document still have a PresShell.
// See bug 1375940.
}
#endif
NS_ENSURE_STATE(!aContent || aContent->GetComposedDoc() == mDocument);