Fix for bug 45377 (document base is not set right in nsXMLDocument::Load). Code by heikki, r=me, sr=jst.

This commit is contained in:
peterv%netscape.com 2001-04-17 09:46:29 +00:00
Родитель d545b56668
Коммит 0739fff5e4
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -337,6 +337,9 @@ nsXMLDocument::Load(const nsAReadableString& aUrl)
if (NS_FAILED(secMan->CheckLoadURIFromScript(nsnull, uri)))
return NS_ERROR_FAILURE;
// Reset the document URL to the new URL
SetDocumentURL(uri);
// Create a channel
rv = NS_OpenURI(getter_AddRefs(channel), uri, nsnull, nsnull, this);
if (NS_FAILED(rv)) return rv;