<div dir="ltr">Helly guys,<div><br></div><div>This is my use case : </div><div> - Create a WebView for <a href="http://127.0.0.1">http://127.0.0.1</a></div><div>      -&gt; from the web site open a popup with a specific url (say 192.168.1.10)</div><div> - Create a WebView in the &quot;create&quot; callback</div><div>      -&gt; from the web site (192.168.1.10) open a popup with a relative url (say : pouet.html )</div><div> - Create a WebView in the &quot;create&quot; callback</div><div><br></div><div>      ==&gt; the new webkitview url is : <a href="http://127.0.0.1/pouet.html">http://127.0.0.1/pouet.html</a></div><div><br></div><div>Webkit version : 2.4</div><div><br></div><div><br>This is my callback method : </div><div><br></div><div><div><br></div><div>GtkWidget*</div><div>create (WebKitWebView *web_view,</div><div>               gpointer       user_data)</div><div>{</div><div><span class="" style="white-space:pre">        </span>GtkWidget* result = webkit_web_view_new_with_related_view(WEBKIT_WEB_VIEW(user_data));</div><div><span class="" style="white-space:pre">        </span>WebKitSettings* settings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(result));</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_view_set_settings(WEBKIT_WEB_VIEW(result), settings);</div><div><br></div><div><span class="" style="white-space:pre">        </span>GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);</div><div><span class="" style="white-space:pre">        </span>gtk_window_fullscreen(GTK_WINDOW(window));</div><div><span class="" style="white-space:pre">        </span>gtk_container_set_border_width (GTK_CONTAINER (window), 0);</div><div><span class="" style="white-space:pre">        </span>gtk_widget_realize (window);</div><div><br></div><div><span class="" style="white-space:pre">        </span>GtkWidget* container = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);</div><div><span class="" style="white-space:pre">        </span>gtk_widget_set_name(container, &quot;tbox&quot;);</div><div><br></div><div><span class="" style="white-space:pre">        </span>GtkWidget* closeButton = gtk_button_new_with_label(gettext(&quot;Close&quot;));</div><div><span class="" style="white-space:pre">        </span>gtk_widget_set_margin_right(closeButton, 8);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect (closeButton, &quot;clicked&quot;, G_CALLBACK(ast_local_viewer_close_popup), window);</div><div><br></div><div><span class="" style="white-space:pre">        </span>GtkWidget* hTopButtons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5);</div><div><br></div><div><span class="" style="white-space:pre">        </span>GtkWidget* hTopButtonsAlign = gtk_alignment_new(1, 0.5, 0, 0);</div><div><span class="" style="white-space:pre">        </span>gtk_container_add(GTK_CONTAINER(hTopButtons), closeButton);</div><div><span class="" style="white-space:pre">        </span>gtk_container_add(GTK_CONTAINER(hTopButtonsAlign), hTopButtons);</div><div><span class="" style="white-space:pre">        </span>gtk_box_pack_start(GTK_BOX(container), hTopButtonsAlign, FALSE, FALSE, 0);</div><div><span class="" style="white-space:pre">        </span>gtk_box_pack_start(GTK_BOX(container), result, TRUE, TRUE, 0);</div><div><br></div><div><span class="" style="white-space:pre">        </span>gtk_container_add(GTK_CONTAINER( window), container);</div><div><br></div><div><span class="" style="white-space:pre">        </span>g_signal_connect(result, &quot;ready-to-show&quot;, G_CALLBACK(read_to_show), window);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(result, &quot;close&quot;, G_CALLBACK(on_popup_webkit_close), window);</div><div><span class="" style="white-space:pre">        </span>g_signal_connect(result, &quot;create&quot;, G_CALLBACK(create), result);</div><div><br></div><div><span class="" style="white-space:pre">        </span>return result;</div><div>}</div></div><div><br></div><div><br></div><div>My question : why the opened url is base on 127.0.0.1 ? How do I change this behavior to open the popup with the address <a href="http://192.168.1.10/pouet.html">http://192.168.1.10/pouet.html</a></div><div><br></div><div><br></div><div>Thx for your help,</div><div>Adrien</div><div><br></div><div> </div></div>