Bug 1463132 - New autofill threshold doesn't work well with redirects. r=adw
MozReview-Commit-ID: 9DqCWA2nGnz
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user