mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
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
This commit is contained in:
parent
961324e8f4
commit
d6bcc60cbd
@ -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<nsIHttpChannel> 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
|
||||
|
Loading…
Reference in New Issue
Block a user