Bug 1329521 - nsGlobalWindow::GetSessionStorage should not compare privateBrowsing with originAttributes when window is chrome type, r=smaug

This commit is contained in:
Andrea Marchesini 2017-01-13 15:42:23 +01:00
parent 4a461b1ce2
commit ecd3a28486

View File

@ -10651,7 +10651,7 @@ nsGlobalWindow::GetSessionStorage(ErrorResult& aError)
return nullptr;
}
MOZ_DIAGNOSTIC_ASSERT((principal->GetPrivateBrowsingId() > 0) == IsPrivateBrowsing());
MOZ_ASSERT_IF(!mIsChrome, (principal->GetPrivateBrowsingId() > 0) == IsPrivateBrowsing());
nsCOMPtr<nsIDOMStorage> storage;
aError = storageManager->CreateStorage(AsInner(), principal, documentURI,