From 0503dbb591a6344edcafaa67bf35696a1f22bf2f Mon Sep 17 00:00:00 2001 From: "mconnor%steelgryphon.com" Date: Mon, 17 Oct 2005 17:37:24 +0000 Subject: [PATCH] bug 311195 - When update URL is 404, engine update ignores updateCheckDays, patch by O. Atsushi (Torisugari) (torisugari@gmail.com), r=me, sr=neil, a=asa git-svn-id: svn://10.0.0.236/trunk@182388 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/search/src/nsInternetSearchService.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp index ccf832d0bd8..9c45d9ae830 100755 --- a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp +++ b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp @@ -5191,6 +5191,11 @@ InternetSearchDataSource::OnStopRequest(nsIRequest *request, nsISupports *ctxt, busySchedule = PR_FALSE; busyResource = nsnull; + // mark now as the last time we stat'ted the search engine + // regardless of HTTP status + rv = validateEngineNow(theEngine); + NS_ENSURE_SUCCESS(rv, rv); + // we only have HTTP "HEAD" information when doing updates nsCOMPtr httpChannel (do_QueryInterface(channel)); if (!httpChannel) return(NS_ERROR_UNEXPECTED); @@ -5268,9 +5273,6 @@ InternetSearchDataSource::OnStopRequest(nsIRequest *request, nsISupports *ctxt, } } - // mark now as the last time we stat'ted the search engine - validateEngineNow(theEngine); - if (updateSearchEngineFile) { #ifdef DEBUG_SEARCH_UPDATES