| Index: third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| index 03638df9e8668fb6f483dbc8efd9d4f12e8aa42c..55c3276ad4e89de0b8919b069100da9817fbe842 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| @@ -75,8 +75,8 @@ public:
|
| init.setReason(ScriptValue(m_scriptState, reason));
|
| init.setCancelable(true);
|
| RefPtrWillBeRawPtr<PromiseRejectionEvent> event = PromiseRejectionEvent::create(m_scriptState, EventTypeNames::unhandledrejection, init);
|
| - // Log to console if event was not preventDefault()'ed.
|
| - m_shouldLogToConsole = target->dispatchEvent(event);
|
| + // Log to console if event was not handled.
|
| + m_shouldLogToConsole = target->dispatchEvent(event) == WebInputEventResult::NotHandled;
|
| }
|
|
|
| if (m_shouldLogToConsole) {
|
|
|