mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 1140065 Check for null actor before using it in CacheStorageChild::RecvOpenResponse(). r=ehsan
This commit is contained in:
parent
9a8cf9a686
commit
f8c56f6d37
4
dom/cache/CacheStorageChild.cpp
vendored
4
dom/cache/CacheStorageChild.cpp
vendored
@ -137,7 +137,9 @@ CacheStorageChild::RecvOpenResponse(const RequestId& aRequestId,
|
||||
// the feature won't try to shutdown the actor until after we create the
|
||||
// Cache DOM object in the listener's RecvOpenResponse() method. This
|
||||
// is important because StartShutdown() expects a Cache object listener.
|
||||
cacheChild->SetFeature(GetFeature());
|
||||
if (cacheChild) {
|
||||
cacheChild->SetFeature(GetFeature());
|
||||
}
|
||||
|
||||
listener->RecvOpenResponse(aRequestId, aRv, cacheChild);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user