mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1329521 - nsGlobalWindow::GetSessionStorage should not compare privateBrowsing with originAttributes when window is chrome type, r=smaug
This commit is contained in:
parent
4a461b1ce2
commit
ecd3a28486
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user