Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu

MozReview-Commit-ID: DqJdTGopR9G
This commit is contained in:
Masatoshi Kimura
2017-07-29 20:50:21 +09:00
parent 94822f2368
commit c0943e4f30
101 changed files with 263 additions and 261 deletions

View File

@@ -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.