mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
XP_FindNameContextInList() can return null if looking for a target of type _new, adding a check for this case (122092) r=toshok, a=chofmann
This commit is contained in:
parent
b6afa84a20
commit
288c146f04
@ -2897,10 +2897,18 @@ fe_mocha_submit_form_cb (MWContext *context, LO_Element *element, int32 event,
|
||||
NET_AddLOSubmitDataToURLStruct (data, url);
|
||||
if (data->window_target)
|
||||
{
|
||||
context = XP_FindNamedContextInList(context, (char*)data->window_target);
|
||||
data->window_target = NULL;
|
||||
url->window_target = NULL;
|
||||
}
|
||||
MWContext *tempContext;
|
||||
|
||||
tempContext = XP_FindNamedContextInList(context, data->window_target);
|
||||
|
||||
/* Might be null if we're looking at _new. */
|
||||
if(tempContext)
|
||||
{
|
||||
context = tempContext;
|
||||
data->window_target = NULL;
|
||||
url->window_target = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fe_GetURL (context, url, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user