Bug 1706593: Update prePath to camel case in nsIPrincipal.idl r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D113927
This commit is contained in:
Christoph Kerschbaumer 2021-04-30 11:16:31 +00:00
parent b4bac4cfef
commit d6ef7be5e9
6 changed files with 7 additions and 7 deletions

View File

@ -835,7 +835,7 @@ BasePrincipal::GetExposableSpec(nsACString& aSpec) {
}
NS_IMETHODIMP
BasePrincipal::GetPrepath(nsACString& aPath) {
BasePrincipal::GetPrePath(nsACString& aPath) {
aPath.Truncate();
nsCOMPtr<nsIURI> prinURI;
nsresult rv = GetURI(getter_AddRefs(prinURI));

View File

@ -145,7 +145,7 @@ class BasePrincipal : public nsJSPrincipals {
NS_IMETHOD GetExposableSpec(nsACString& aSpec) override;
NS_IMETHOD GetHostPort(nsACString& aRes) override;
NS_IMETHOD GetHost(nsACString& aRes) override;
NS_IMETHOD GetPrepath(nsACString& aResult) override;
NS_IMETHOD GetPrePath(nsACString& aResult) override;
NS_IMETHOD GetFilePath(nsACString& aResult) override;
NS_IMETHOD GetOriginSuffix(nsACString& aOriginSuffix) final;
NS_IMETHOD GetIsIpAddress(bool* aIsIpAddress) override;

View File

@ -258,11 +258,11 @@ interface nsIPrincipal : nsISerializable
readonly attribute ACString host;
/**
* Returns the prepath of the principals uri
* Returns the prePath of the principals uri
* follows the format scheme:
* "scheme://username:password@hostname:portnumber/"
*/
readonly attribute ACString prepath;
readonly attribute ACString prePath;
/**
* Returns the filePath of the principals uri. See nsIURI.

View File

@ -304,7 +304,7 @@ class BlobURLsReporter final : public nsIMemoryReporter {
nsAutoCString origin;
aInfo->mPrincipal->GetPrepath(origin);
aInfo->mPrincipal->GetPrePath(origin);
// If we got a frame, we better have a current JSContext. This is cheating
// a bit; ideally we'd have our caller pass in a JSContext, or have

View File

@ -56,7 +56,7 @@ function commonDialogOnLoad() {
}
// hostPort can be empty for file URIs.
if (!title.raw) {
title.raw = promptPrincipal.prepath;
title.raw = promptPrincipal.prePath;
}
} else {
title = { l10nId: "common-dialog-title-unknown" };

View File

@ -309,7 +309,7 @@ let RemotePageAccessManager = {
if (!aPrincipal.schemeIs("about")) {
return null;
}
spec = aPrincipal.prepath + aPrincipal.filePath;
spec = aPrincipal.prePath + aPrincipal.filePath;
}
// Check if there is an entry for that requestying URI in the accessMap;