view = midori_view_new_with_item (item, browser->settings,
g_object_get_data (G_OBJECT (item), "midori-view-append") ? TRUE : FALSE);
page = midori_browser_add_tab (browser, view);
-
- /* Blank pages should not be delayed */
- if (katze_item_get_meta_integer (item, "delay") > 0
- && !midori_uri_is_blank (uri)
- && strncmp (uri, "pause:", 6) != 0)
- {
- gchar* new_uri = g_strdup_printf ("pause:%s", uri);
- midori_view_set_uri (MIDORI_VIEW (view), new_uri);
- g_free (new_uri);
- }
- else
- midori_view_set_uri (MIDORI_VIEW (view), uri);
-
+ midori_view_set_uri (MIDORI_VIEW (view), uri);
return page;
}
g_object_notify (G_OBJECT (view), "uri");
return;
}
- else if (g_str_has_prefix (uri, "pause:"))
+ else if (katze_item_get_meta_integer (view->item, "delay") > 0)
{
- katze_assign (view->uri, g_strdup (&uri[6]));
+ katze_assign (view->uri, g_strdup (uri));
+ katze_item_set_meta_integer (view->item, "delay", -1);
midori_view_display_error (
view, view->uri, view->title ? view->title : view->uri,
_("Page loading delayed"),
{
katze_assign (view->uri, midori_uri_format_for_display (uri));
katze_item_set_uri (view->item, uri);
- katze_item_set_meta_integer (view->item, "delay", -1);
g_object_notify (G_OBJECT (view), "uri");
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), uri);
}