зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1170822
- Fix controlled documents comparison. r=catalinb
--HG-- extra : rebase_source : c49fed55ea782a7ef34e867a9b21b1dc66a7c088
This commit is contained in:
Родитель
1fe912e2ec
Коммит
83d79304bb
|
@ -3692,14 +3692,16 @@ EnumControlledDocuments(nsISupports* aKey,
|
|||
void* aData)
|
||||
{
|
||||
FilterRegistrationData* data = static_cast<FilterRegistrationData*>(aData);
|
||||
if (data->mRegistration != aRegistration) {
|
||||
MOZ_ASSERT(data->mRegistration);
|
||||
MOZ_ASSERT(aRegistration);
|
||||
if (!data->mRegistration->mScope.Equals(aRegistration->mScope)) {
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocument> document = do_QueryInterface(aKey);
|
||||
|
||||
if (!document || !document->GetWindow()) {
|
||||
return PL_DHASH_NEXT;
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
ServiceWorkerClientInfo clientInfo(document);
|
||||
|
|
Загрузка…
Ссылка в новой задаче