зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1265795 P3 Assert that controlled documents have an outer window. r=bz
This commit is contained in:
Родитель
d7ee43813a
Коммит
d78f4aec16
|
@ -2787,6 +2787,10 @@ ServiceWorkerManager::GetAllClients(nsIPrincipal* aPrincipal,
|
|||
}
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(iter.Key());
|
||||
|
||||
// All controlled documents must have an outer window.
|
||||
MOZ_ASSERT(doc->GetWindow());
|
||||
|
||||
ProcessDocument(aPrincipal, doc);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче