Chromium Code Reviews| 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 a9ea53c3a7f0a88aff4ae508ed71b71e3dd5a9b1..3f53c464518183c96709ceaa8729142f2c3e818f 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp |
| @@ -70,8 +70,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. |
|
philipj_slow
2016/02/25 15:23:46
s/handled/canceled/, but with the new naming the c
dtapuska
2016/02/25 22:06:09
Done.
|
| + m_shouldLogToConsole = target->dispatchEvent(event) == DispatchEventResult::NotCanceled; |
| } |
| if (m_shouldLogToConsole) { |