mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
b4bac4cfef
commit
d6ef7be5e9
@ -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));
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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" };
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user