mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Backed out changeset 2bbc7be933e2 (bug 1309070) for causing bug 1320041.
This commit is contained in:
parent
b66ce7516a
commit
908a323277
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user