Bug 1265795 P3 Assert that controlled documents have an outer window. r=bz

This commit is contained in:
Ben Kelly 2016-04-21 16:10:40 -07:00
parent d7ee43813a
commit d78f4aec16

View File

@ -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);
}
}