Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G
This commit is contained in:
@@ -280,7 +280,7 @@ FSURLEncoded::GetEncodedSubmission(nsIURI* aURI,
|
||||
if (isMailto) {
|
||||
|
||||
nsAutoCString path;
|
||||
rv = aURI->GetPath(path);
|
||||
rv = aURI->GetPathQueryRef(path);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
HandleMailtoSubject(path);
|
||||
@@ -293,7 +293,7 @@ FSURLEncoded::GetEncodedSubmission(nsIURI* aURI,
|
||||
|
||||
path += NS_LITERAL_CSTRING("&force-plain-text=Y&body=") + escapedBody;
|
||||
|
||||
rv = aURI->SetPath(path);
|
||||
rv = aURI->SetPathQueryRef(path);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -332,7 +332,7 @@ FSURLEncoded::GetEncodedSubmission(nsIURI* aURI,
|
||||
}
|
||||
else {
|
||||
nsAutoCString path;
|
||||
rv = aURI->GetPath(path);
|
||||
rv = aURI->GetPathQueryRef(path);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
// Bug 42616: Trim off named anchor and save it to add later
|
||||
int32_t namedAnchorPos = path.FindChar('#');
|
||||
@@ -353,7 +353,7 @@ FSURLEncoded::GetEncodedSubmission(nsIURI* aURI,
|
||||
// Bug 42616: Add named anchor to end after query string
|
||||
path.Append(mQueryString + namedAnchor);
|
||||
|
||||
aURI->SetPath(path);
|
||||
aURI->SetPathQueryRef(path);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -725,7 +725,7 @@ FSTextPlain::GetEncodedSubmission(nsIURI* aURI,
|
||||
aURI->SchemeIs("mailto", &isMailto);
|
||||
if (isMailto) {
|
||||
nsAutoCString path;
|
||||
rv = aURI->GetPath(path);
|
||||
rv = aURI->GetPathQueryRef(path);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
HandleMailtoSubject(path);
|
||||
@@ -739,7 +739,7 @@ FSTextPlain::GetEncodedSubmission(nsIURI* aURI,
|
||||
|
||||
path += NS_LITERAL_CSTRING("&force-plain-text=Y&body=") + escapedBody;
|
||||
|
||||
rv = aURI->SetPath(path);
|
||||
rv = aURI->SetPathQueryRef(path);
|
||||
|
||||
} else {
|
||||
// Create data stream.
|
||||
|
||||
Reference in New Issue
Block a user