mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184789 - Remove unnecessary IsOuterWindow() check from nsGlobalWindow::GetCaches(). r=khuey
This commit is contained in:
parent
712e46eade
commit
d48d4e6f85
@ -11110,13 +11110,9 @@ nsGlobalWindow::GetCaches(ErrorResult& aRv)
|
||||
MOZ_ASSERT(IsInnerWindow());
|
||||
|
||||
if (!mCacheStorage) {
|
||||
bool forceTrustedOrigin = false;
|
||||
if (IsOuterWindow()) {
|
||||
forceTrustedOrigin = GetServiceWorkersTestingEnabled();
|
||||
} else {
|
||||
nsRefPtr<nsGlobalWindow> outer = GetOuterWindowInternal();
|
||||
forceTrustedOrigin = outer->GetServiceWorkersTestingEnabled();
|
||||
}
|
||||
bool forceTrustedOrigin =
|
||||
GetOuterWindowInternal()->GetServiceWorkersTestingEnabled();
|
||||
|
||||
mCacheStorage = CacheStorage::CreateOnMainThread(cache::DEFAULT_NAMESPACE,
|
||||
this, GetPrincipal(),
|
||||
IsPrivateBrowsing(),
|
||||
|
Loading…
Reference in New Issue
Block a user