Index: third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp |
diff --git a/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp b/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp |
index 6c7a1748696069af23a5dc3b333693ad80c60a58..29011ecb67602da1c9a8ed6aded631ba52af709d 100644 |
--- a/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp |
+++ b/third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp |
@@ -28,8 +28,9 @@ void AppBannerController::willShowInstallBannerPrompt(int requestId, WebAppBanne |
// dispatchEvent() returns whether the default behavior can happen. In other |
// words, it returns false if preventDefault() was called. |
- *reply = frame->domWindow()->dispatchEvent(BeforeInstallPromptEvent::create(EventTypeNames::beforeinstallprompt, frame->document(), wtfPlatforms, requestId, client)) |
- ? WebAppBannerPromptReply::None : WebAppBannerPromptReply::Cancel; |
+ *reply = frame->domWindow()->dispatchEvent(BeforeInstallPromptEvent::create(EventTypeNames::beforeinstallprompt, frame->document(), wtfPlatforms, requestId, client)) == WebInputEventResult::NotHandled |
+ ? WebAppBannerPromptReply::None |
+ : WebAppBannerPromptReply::Cancel; |
} |
} // namespace blink |