Bug 1463132 - New autofill threshold doesn't work well with redirects. r=adw

MozReview-Commit-ID: 9DqCWA2nGnz
This commit is contained in:
Marco Bonardo
2018-05-23 16:49:06 +02:00
parent ecfa398ee2
commit 67caf9a39c
6 changed files with 152 additions and 135 deletions

View File

@@ -12610,6 +12610,9 @@ nsDocShell::AddURIVisit(nsIURI* aURI,
if (aResponseStatus >= 300 && aResponseStatus < 400) {
visitURIFlags |= IHistory::REDIRECT_SOURCE;
if (aResponseStatus == 301 || aResponseStatus == 308) {
visitURIFlags |= IHistory::REDIRECT_SOURCE_PERMANENT;
}
}
// Errors 400-501 and 505 are considered unrecoverable, in the sense a
// simple retry attempt by the user is unlikely to solve them.