mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1375940 - Fix an assertion in PresShell::HandleEventWithTarget, r=smaug
MozReview-Commit-ID: 4hRjlgbLDA8
This commit is contained in:
parent
8430ea8843
commit
a90065b7f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user