Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7T5gCu8WOfa
This commit is contained in:
@@ -353,7 +353,9 @@ URLMainThread::SetHostname(const nsAString& aHostname, ErrorResult& aRv)
|
||||
{
|
||||
// nsStandardURL returns NS_ERROR_UNEXPECTED for an empty hostname
|
||||
// The return code is silently ignored
|
||||
mURI->SetHost(NS_ConvertUTF16toUTF8(aHostname));
|
||||
mozilla::Unused << NS_MutateURI(mURI)
|
||||
.SetHost(NS_ConvertUTF16toUTF8(aHostname))
|
||||
.Finalize(mURI);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user