diff options
Diffstat (limited to 'WebCore')
| -rw-r--r-- | WebCore/dom/Document.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp index 85966d7..f146761 100644 --- a/WebCore/dom/Document.cpp +++ b/WebCore/dom/Document.cpp @@ -1489,7 +1489,8 @@ void Document::detach() #if ENABLE(TOUCH_EVENTS) // Android // clean up for the top document - if (!m_frame->ownerElement()) { + Page* ownerPage = page(); + if (ownerPage && (m_frame == ownerPage->mainFrame())) { m_touchEventListeners.clear(); #if PLATFORM(ANDROID) if (view) |
