Bug 790164 - Keep contentPresShell alive while sending touch events. r=smaug

This commit is contained in:
Wes Johnston 2012-09-11 13:28:06 -07:00
parent 6c127f7a77
commit 9711c10c10

View File

@ -6528,7 +6528,7 @@ PresShell::DispatchTouchEvent(nsEvent *aEvent,
if (!content) {
content = do_QueryInterface(targetPtr);
}
PresShell* contentPresShell = nullptr;
nsRefPtr<PresShell> contentPresShell;
if (content && content->OwnerDoc() == mDocument) {
contentPresShell = static_cast<PresShell*>
(content->OwnerDoc()->GetShell());