diff --git a/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc b/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc
index 2ad0d2334f517..5d1624c132d07 100644
--- a/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc
+++ b/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc
@@ -165,15 +165,20 @@ void CloseWatcher::WatcherStack::EscapeKeyHandler(KeyboardEvent* event) {
void CloseWatcher::WatcherStack::Signal() {
DCHECK(AnyEnabledWatchers())
<< "If there aren't watchers enabled, the mojo pipe should be reset";
+ LOG(ERROR)<<__func__<<"begin===\n";
auto& group = watcher_groups_.back();
+ LOG(ERROR)<<__func__<<" , group "<< group.size() << " tname-> " << base::PlatformThread::GetName()<<"\n";
for (auto& watcher : base::Reversed(group)) {
+ LOG(ERROR)<<__func__<<" , before RequestClose, group.size-> "<< group.size() << " tname-> " << base::PlatformThread::GetName()<<"\n";
if (!watcher->RequestClose(AllowCancel::kWithUserActivation)) {
break;
}
+ LOG(ERROR)<<__func__<<" , after RequestClose, group.size-> "<< group.size() << " tname-> " << base::PlatformThread::GetName()<<"\n";
}
if (allowed_groups_ > 1) {
--allowed_groups_;
}
+ LOG(ERROR)<<__func__<<"end===\n";
}
void CloseWatcher::WatcherStack::Trace(Visitor* visitor) const {