// While a JS message dialog is showing, tabs in the same process shouldn't
// process input events.
+ LOG(INFO) << "RunJavaScriptDialog,SetBlocked TRUE";
GetProcess()->SetBlocked(true);
delegate_->RunJavaScriptDialog(
JavaScriptDialogCallback dialog_closed_callback,
bool success,
const std::u16string& user_input) {
+ LOG(INFO) << "JavaScriptDialogClosed,SetBlocked FALSE";
GetProcess()->SetBlocked(false);
std::move(dialog_closed_callback).Run(success, user_input);
// If executing as part of beforeunload event handling, there may have been
LOG(INFO) << "OnWindowFocused, Gained : " << gained_focus
<< ", Lost : " << lost_focus;
if (window_ == gained_focus) {
+#if !BUILDFLAG(IS_TIZEN_TV)
// We need to honor input bypass if the associated tab does not want input.
// This gives the current focused window a chance to be the text input
// client and handle events.
if (host()->IsIgnoringInputEvents())
return;
+#endif
host()->GotFocus();
UpdateActiveState(true);
DCHECK(!lifecycle_.InDetach());
clear_focused_element_timer_.Stop();
+ LOG(INFO) << "setFocusedElement to element " << (void*)new_focused_element;
// Make sure new_focused_element is actually in this document.
if (new_focused_element) {
}
if (!focus_change_blocked) {
+ LOG(INFO) << "setFocusedElement focus changed from: "
+ << (old_focused_element
+ ? old_focused_element->outerHTML().Utf8().data()
+ : "nullptr");
+ LOG(INFO) << "setFocusedElement focus changed to: "
+ << (new_focused_element
+ ? new_focused_element->outerHTML().Utf8().data()
+ : "nullptr");
NotifyFocusedElementChanged(old_focused_element, focused_element_.Get(),
params.type);
}
if (page->Paused())
return;
}
+ LOG(INFO) << "DispatchEventsOnWindowAndFocusedElement,focused:" << focused;
if (!focused && document->FocusedElement()) {
Element* focused_element = document->FocusedElement();