| Index: third_party/WebKit/Source/core/events/Event.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
|
| index 9177b507d1ed70182052d95199034ef7e5c4ebc5..99663663441a8692e69e4b8b0b9572ef623e8e0c 100644
|
| --- a/third_party/WebKit/Source/core/events/Event.cpp
|
| +++ b/third_party/WebKit/Source/core/events/Event.cpp
|
| @@ -231,7 +231,7 @@ bool Event::isBeforeUnloadEvent() const
|
| void Event::preventDefault()
|
| {
|
| if (m_handlingPassive) {
|
| - const LocalDOMWindow* window = m_currentTarget ? m_currentTarget->toDOMWindow() : 0;
|
| + const LocalDOMWindow* window = m_eventPath ? m_eventPath->windowEventContext().window() : 0;
|
| if (window)
|
| window->printErrorMessage("Unable to preventDefault inside passive event listener invocation.");
|
| return;
|
|
|