// Filter out URLs to which navigation is disallowed from this context.
GetProcess()->FilterURL(false, ¶ms->target_url);
+ LOG(INFO) << "allow popup : " << params->allow_popup
+ << ", activate : " << frame_tree_node_->HasTransientUserActivation()
+ << ", active : " << transient_allow_popup_.IsActive()
+ << ", disposition : " << (int)params->disposition;
bool effective_transient_activation_state =
params->allow_popup || HasTransientUserActivation() ||
(transient_allow_popup_.IsActive() &&
}
void BrowserContextEfl::SetScriptsCanOpenWindows(bool enable) {
- if (scripts_can_open_window_ == enable)
- return;
-
scripts_can_open_window_ = enable;
SendToAllRenderers(new EwkViewMsg_SetScriptsCanOpenWindows(enable));
}
RenderWidgetHost::GetRenderWidgetHosts());
RenderWidgetHost* widget = NULL;
+ LOG(INFO) << __FUNCTION__;
while ((widget = widgets->GetNextHost()))
if (widget->GetProcess()->GetID() == render_process_id)
break;
bool user_gesture,
bool opener_suppressed,
bool* no_javascript_access) {
+ LOG(INFO) << "user_gesture : " << user_gesture;
if (!user_gesture) {
*no_javascript_access = true;
- base::ThreadPool::PostTask(
+ content::GetUIThreadTaskRunner({})->PostTask(
FROM_HERE, base::BindOnce(&DispatchPopupBlockedOnUIThread,
opener->GetProcess()->GetID(), target_url));
return false;