<div dir="ltr">Hello guys,<div><br></div><div>I&#39;m using Webkit2Gtk and i&#39;m facing a difficult that I can&#39;t open a javascript popup. </div><div><br></div><div>This is my WebkitView initialization code : </div><div><br></div><div><div><span class="" style="white-space:pre">        </span>WebKitWebContext* context = webkit_web_context_get_default();</div><div><span class="" style="white-space:pre">        </span>WebKitSettings* settings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(self-&gt;content_web));</div><div><span class="" style="white-space:pre">        </span>g_object_set(settings, &quot;javascript-can-open-windows-automatically&quot;, TRUE, &quot;allow-modal-dialogs&quot;, TRUE, NULL);</div><div><span class="" style="white-space:pre">        </span>webkit_settings_set_sans_serif_font_family(settings, &quot;Helvetica Neue&quot;);</div><div><span class="" style="white-space:pre">        </span>webkit_settings_set_enable_javascript(settings, TRUE);</div><div><span class="" style="white-space:pre">        </span>webkit_settings_set_javascript_can_open_windows_automatically(settings, TRUE);</div><div><span class="" style="white-space:pre">        </span>webkit_settings_set_allow_modal_dialogs(settings, TRUE);</div><div><span class="" style="white-space:pre">        </span>webkit_web_context_set_cache_model(context, WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);</div><div><span class="" style="white-space:pre">        </span>webkit_web_context_clear_cache (context);</div><div><span class="" style="white-space:pre">        </span>webkit_web_view_load_uri(WEBKIT_WEB_VIEW(self-&gt;content_web), &quot;<a href="http://localhost/index.php?logout=true">http://localhost/index.php?logout=true</a>&quot;);</div><div><span class="" style="white-space:pre">        </span>webkit_settings_set_enable_page_cache(settings, FALSE);</div><div><span class="" style="white-space:pre">        </span>webkit_web_view_set_settings(WEBKIT_WEB_VIEW(self-&gt;content_web), settings);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(self-&gt;content_web, &quot;decide-policy&quot;, G_CALLBACK(decide_policy_cb), self);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(self-&gt;content_web, &quot;create&quot;, G_CALLBACK(create), self);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(self-&gt;content_web, &quot;ready-to-show&quot;, G_CALLBACK(read_to_show), self);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(self-&gt;content_web, &quot;run-as-modal&quot;, G_CALLBACK(run_as_modal), self);</div></div><div><br></div><div>The observed behavior is that &quot;create&quot; signal is called but nothing else. (I return NULL in the callback, and I also tried to create a GtkWindow, if a WebKitView inside and return the WebKitView).  </div><div><br></div><div>I probably just miss something obvious, Thx in adavance for your help. </div><div><br></div><div><br></div></div>