Bug 853628 - Make nsMenuItemIconX wait for DECODE_COMPLETE instead of LOAD_COMPELTE so the History and Bookmarks menu favicons work. r=smichaud

This commit is contained in:
Joe Drew 2013-03-21 23:09:16 -04:00
parent 7da79436e5
commit f1315f17ae

View File

@ -339,7 +339,7 @@ nsMenuItemIconX::Notify(imgIRequest *aRequest, int32_t aType, const nsIntRect* a
return OnStopFrame(aRequest);
}
if (aType == imgINotificationObserver::LOAD_COMPLETE) {
if (aType == imgINotificationObserver::DECODE_COMPLETE) {
if (mIconRequest && mIconRequest == aRequest) {
mIconRequest->Cancel(NS_BINDING_ABORTED);
mIconRequest = nullptr;