[project @ 2004-06-28 23:57:26 by jmb]

Correct behaviour of unknown URL launching mechanism. the ANT load never occurred.

svn path=/import/netsurf/; revision=1025
This commit is contained in:
John Mark Bell 2004-06-28 23:57:26 +00:00
parent 5d0bc4e758
commit 05c46359ba
2 changed files with 7 additions and 4 deletions

View File

@ -818,8 +818,7 @@ void ro_gui_user_message(wimp_event_no event, wimp_message *message)
ro_uri_message_received(message);
break;
case message_URI_RETURN_RESULT:
if (event == wimp_USER_MESSAGE_ACKNOWLEDGE)
ro_uri_bounce(message);
ro_uri_bounce(message);
break;
#endif
#ifdef WITH_URL

View File

@ -66,7 +66,8 @@ bool ro_uri_launch(char *uri) {
uri_dispatch_flags returned;
os_error *e;
e = xuri_dispatch(0, uri, task_handle, &returned, &handle_task, &uri_handle);
e = xuri_dispatch(uri_DISPATCH_INFORM_CALLER, uri, task_handle,
&returned, &handle_task, &uri_handle);
if (e || returned & 1) {
return false;
@ -84,7 +85,10 @@ void ro_uri_bounce(uri_full_message_return_result *message) {
e = xuri_request_uri(0, uri_buf, sizeof uri_buf, message->handle, 0);
if (e) return;
if (e) {
LOG(("xuri_request_uri: %d: %s", e->errnum, e->errmess));
return;
}
ro_url_load(uri_buf);