Bug 1173215, don't set mChromeXHRDocURI when dealing with non-XHR documents, r=bz

This commit is contained in:
Olli Pettay
2015-06-13 02:34:52 +03:00
parent ae1a1a50af
commit b24de60bb0
3 changed files with 11 additions and 4 deletions

View File

@@ -175,10 +175,9 @@ SetBaseURIUsingFirstBaseWithHref(nsIDocument* aDocument, nsIContent* aMustMatch)
// Try to set our base URI. If that fails, try to set base URI to null
nsresult rv = aDocument->SetBaseURI(newBaseURI);
aDocument->SetChromeXHRDocBaseURI(newBaseURI);
aDocument->SetChromeXHRDocBaseURI(nullptr);
if (NS_FAILED(rv)) {
aDocument->SetBaseURI(nullptr);
aDocument->SetChromeXHRDocBaseURI(nullptr);
}
return;
}