Commit 5a16c6fd authored by valenting's avatar valenting
Browse files

Bug 1603551 - Check return value of mManifestItem->GetStatus() in...

Bug 1603551 - Check return value of mManifestItem->GetStatus() in nsOfflineCacheUpdate.cpp r=mayhemer

Differential Revision: https://phabricator.services.mozilla.com/D57151

--HG--
extra : moz-landing-system : lando
parent 6651e8f3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,11 @@ void nsOfflineCacheUpdate::LoadCompleted(nsOfflineCacheUpdateItem* aItem) {
    // Obsolete this cache group if one of these is returned.
    uint16_t status;
    rv = mManifestItem->GetStatus(&status);
    if (NS_FAILED(rv)) {
      NotifyState(nsIOfflineCacheUpdateObserver::STATE_ERROR);
      Finish();
      return;
    }
    if (status == 404 || status == 410) {
      LogToConsole("Offline cache manifest removed, cache cleared",
                   mManifestItem);