mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
Bug 21013: Add base url to NS_NewURI - this allows forms to be submitted to relative url's. r=pierre a=chofmann My contact info=650.520.3348
This commit is contained in:
parent
1949a7d733
commit
f2a52e7f9b
@ -616,7 +616,7 @@ nsFormFrame::OnSubmit(nsIPresContext* aPresContext, nsIFrame* aFrame)
|
||||
NS_SCRIPTSECURITYMANAGER_PROGID, &result);
|
||||
nsCOMPtr<nsIURI> actionURL;
|
||||
if (NS_FAILED(result) ||
|
||||
NS_FAILED(result = NS_NewURI(getter_AddRefs(actionURL), href)) ||
|
||||
NS_FAILED(result = NS_NewURI(getter_AddRefs(actionURL), href, docURL)) ||
|
||||
NS_FAILED(result = securityManager->CheckLoadURI(docURL, actionURL)))
|
||||
{
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user