Backed out changeset 2bbc7be933e2 (bug 1309070) for causing bug 1320041.

This commit is contained in:
Andrew McCreight 2016-11-26 09:31:17 -08:00
parent b66ce7516a
commit 908a323277

View File

@ -5754,8 +5754,6 @@ nsDocShell::Destroy()
NS_ASSERTION(mItemType == typeContent || mItemType == typeChrome,
"Unexpected item type in docshell");
AssertOriginAttributesMatchPrivateBrowsing();
if (!mIsBeingDestroyed) {
nsCOMPtr<nsIObserverService> serv = services::GetObserverService();
if (serv) {
@ -9513,8 +9511,6 @@ public:
, mLoadingPrincipal(aLoadingPrincipal)
, mInPrivateBrowsing(aInPrivateBrowsing)
{
MOZ_DIAGNOSTIC_ASSERT(
(BasePrincipal::Cast(aLoadingPrincipal)->OriginAttributesRef().mPrivateBrowsingId > 0) == aInPrivateBrowsing);
}
NS_IMETHOD
@ -9557,9 +9553,6 @@ nsDocShell::CopyFavicon(nsIURI* aOldURI,
nsIPrincipal* aLoadingPrincipal,
bool aInPrivateBrowsing)
{
MOZ_DIAGNOSTIC_ASSERT(
(BasePrincipal::Cast(aLoadingPrincipal)->OriginAttributesRef().mPrivateBrowsingId > 0) == aInPrivateBrowsing);
if (XRE_IsContentProcess()) {
dom::ContentChild* contentChild = dom::ContentChild::GetSingleton();
if (contentChild) {
@ -14368,7 +14361,6 @@ nsDocShell::SetOriginAttributes(const DocShellOriginAttributes& aAttrs)
}
SetPrivateBrowsing(isPrivate);
AssertOriginAttributesMatchPrivateBrowsing();
return NS_OK;
}