Bug 1150534 - Synchronously decode favicons before calling GetFrame. r=tn

This commit is contained in:
Seth Fowler 2015-06-19 21:49:50 -07:00
parent 71dd103267
commit 88d81c70d9

View File

@ -1156,7 +1156,9 @@ AsyncFaviconDataReady::OnComplete(nsIURI *aFaviconURI,
NS_ENSURE_SUCCESS(rv, rv);
RefPtr<SourceSurface> surface =
container->GetFrame(imgIContainer::FRAME_FIRST, 0);
container->GetFrame(imgIContainer::FRAME_FIRST,
imgIContainer::FLAG_SYNC_DECODE |
imgIContainer::FLAG_ASYNC_NOTIFY);
NS_ENSURE_TRUE(surface, NS_ERROR_FAILURE);
RefPtr<DataSourceSurface> dataSurface;