Bug 1167590 - Mark imgRequestProxy::mListener as MOZ_UNSAFE_REF. r=seth

This commit is contained in:
Michael Layzell 2015-06-15 14:21:00 -04:00
parent d043439ec2
commit 61d9c6f9c7

View File

@ -204,7 +204,10 @@ private:
// mListener is only promised to be a weak ref (see imgILoader.idl),
// but we actually keep a strong ref to it until we've seen our
// first OnStopRequest.
imgINotificationObserver* mListener;
imgINotificationObserver* MOZ_UNSAFE_REF("Observers must call Cancel() or "
"CancelAndForgetObserver() before "
"they are destroyed") mListener;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsLoadFlags mLoadFlags;