Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
This commit is contained in:
12
dom/cache/StreamControl.cpp
vendored
12
dom/cache/StreamControl.cpp
vendored
@@ -84,6 +84,18 @@ StreamControl::CloseAllReadStreamsWithoutReporting()
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
StreamControl::HasEverBeenRead() const
|
||||
{
|
||||
ReadStreamList::ForwardIterator iter(mReadStreamList);
|
||||
while (iter.HasMore()) {
|
||||
if (iter.GetNext()->HasEverBeenRead()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace cache
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
Reference in New Issue
Block a user