if (data->window_target) { context = XP_FindNamedContextInList(context, data->window_target); data->window_target = NULL; }
fe_mocha_submit_form_cb (MWContext *context, LO_Element *element, int32 event,			 void *closure, ETEventStatus status){  LO_FormSubmitData *data;  URL_Struct *url;    if (status != EVENT_OK)    return;    data = LO_SubmitForm (context, (LO_FormElementStruct *) element);  if (! data) return;  url = NET_CreateURLStruct ((char *) data->action, FALSE);    /* Add the referer to the URL. */  {    History_entry *he = SHIST_GetCurrent (&context->hist);    if (url->referer)      free (url->referer);    url->referer = fe_GetURLForReferral(he);  }  NET_AddLOSubmitDataToURLStruct (data, url);  fe_GetURL (context, url, FALSE);  LO_FreeSubmitData (data);}