Skip to content

Commit

Permalink
Backed out changeset a70b549ac35d (bug 1347817) for failing test_webs…
Browse files Browse the repository at this point in the history
…ocket-transport.html on OSX 10.10 debug. r=backout
  • Loading branch information
Archaeopteryx committed Mar 29, 2017
1 parent 2d288e1 commit 65459a7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions caps/BasePrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ BasePrincipal::GetOriginNoSuffix(nsACString& aOrigin)
if (mOriginNoSuffix) {
return mOriginNoSuffix->ToUTF8String(aOrigin);
}
return GetOriginNoSuffixInternal(aOrigin);
return GetOriginInternal(aOrigin);
}

bool
Expand Down Expand Up @@ -465,10 +465,10 @@ BasePrincipal::FinishInit()

// Then compute the origin without the suffix.
nsAutoCString originNoSuffix;
nsresult rv = GetOriginNoSuffixInternal(originNoSuffix);
nsresult rv = GetOriginInternal(originNoSuffix);
if (NS_FAILED(rv)) {
// If GetOriginNoSuffixInternal fails, we will get a null atom for
// mOriginNoSuffix, which we deal with anywhere mOriginNoSuffix is used.
// If GetOriginInternal fails, we will get a null atom for mOriginNoSuffix,
// which we deal with anywhere mOriginNoSuffix is used.
// Once this is made infallible we can remove those null checks.
mOriginNoSuffix = nullptr;
return;
Expand Down
2 changes: 1 addition & 1 deletion caps/BasePrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class BasePrincipal : public nsJSPrincipals
protected:
virtual ~BasePrincipal();

virtual nsresult GetOriginNoSuffixInternal(nsACString& aOrigin) = 0;
virtual nsresult GetOriginInternal(nsACString& aOrigin) = 0;
// Note that this does not check OriginAttributes. Callers that depend on
// those must call Subsumes instead.
virtual bool SubsumesInternal(nsIPrincipal* aOther, DocumentDomainConsideration aConsider) = 0;
Expand Down
2 changes: 1 addition & 1 deletion caps/ContentPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ContentPrincipal::GetScriptLocation(nsACString &aStr)
}

nsresult
ContentPrincipal::GetOriginNoSuffixInternal(nsACString& aOrigin)
ContentPrincipal::GetOriginInternal(nsACString& aOrigin)
{
if (!mCodebase) {
return NS_ERROR_FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion caps/ContentPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ContentPrincipal final : public mozilla::BasePrincipal
NS_IMETHOD GetBaseDomain(nsACString& aBaseDomain) override;
NS_IMETHOD GetAddonId(nsAString& aAddonId) override;
bool IsCodebasePrincipal() const override { return true; }
nsresult GetOriginNoSuffixInternal(nsACString& aOrigin) override;
nsresult GetOriginInternal(nsACString& aOrigin) override;

ContentPrincipal();

Expand Down
2 changes: 1 addition & 1 deletion caps/ExpandedPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ExpandedPrincipal::SetDomain(nsIURI* aDomain)
}

nsresult
ExpandedPrincipal::GetOriginNoSuffixInternal(nsACString& aOrigin)
ExpandedPrincipal::GetOriginInternal(nsACString& aOrigin)
{
aOrigin.AssignLiteral("[Expanded Principal [");
for (size_t i = 0; i < mPrincipals.Length(); ++i) {
Expand Down
2 changes: 1 addition & 1 deletion caps/ExpandedPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ExpandedPrincipal : public nsIExpandedPrincipal
NS_IMETHOD GetAddonId(nsAString& aAddonId) override;
virtual bool AddonHasPermission(const nsAString& aPerm) override;
virtual nsresult GetScriptLocation(nsACString &aStr) override;
nsresult GetOriginNoSuffixInternal(nsACString& aOrigin) override;
nsresult GetOriginInternal(nsACString& aOrigin) override;

protected:
virtual ~ExpandedPrincipal();
Expand Down
2 changes: 1 addition & 1 deletion caps/NullPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ NullPrincipal::SetDomain(nsIURI* aDomain)
}

nsresult
NullPrincipal::GetOriginNoSuffixInternal(nsACString& aOrigin)
NullPrincipal::GetOriginInternal(nsACString& aOrigin)
{
return mURI->GetSpec(aOrigin);
}
Expand Down
2 changes: 1 addition & 1 deletion caps/NullPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NullPrincipal final : public mozilla::BasePrincipal
NS_IMETHOD SetDomain(nsIURI* aDomain) override;
NS_IMETHOD GetBaseDomain(nsACString& aBaseDomain) override;
NS_IMETHOD GetAddonId(nsAString& aAddonId) override;
nsresult GetOriginNoSuffixInternal(nsACString& aOrigin) override;
nsresult GetOriginInternal(nsACString& aOrigin) override;

static already_AddRefed<NullPrincipal> CreateWithInheritedAttributes(nsIPrincipal* aInheritFrom);

Expand Down
2 changes: 1 addition & 1 deletion caps/SystemPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SystemPrincipal::GetURI(nsIURI** aURI)
}

nsresult
SystemPrincipal::GetOriginNoSuffixInternal(nsACString& aOrigin)
SystemPrincipal::GetOriginInternal(nsACString& aOrigin)
{
aOrigin.AssignLiteral(SYSTEM_PRINCIPAL_SPEC);
return NS_OK;
Expand Down
2 changes: 1 addition & 1 deletion caps/SystemPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SystemPrincipal final : public mozilla::BasePrincipal
NS_IMETHOD EnsurePreloadCSP(nsIDOMDocument* aDocument, nsIContentSecurityPolicy** aCSP) override;
NS_IMETHOD GetBaseDomain(nsACString& aBaseDomain) override;
NS_IMETHOD GetAddonId(nsAString& aAddonId) override;
nsresult GetOriginNoSuffixInternal(nsACString& aOrigin) override;
nsresult GetOriginInternal(nsACString& aOrigin) override;

virtual nsresult GetScriptLocation(nsACString &aStr) override;

Expand Down

0 comments on commit 65459a7

Please sign in to comment.