зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
d545b56668
Коммит
0739fff5e4
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче