diff options
Diffstat (limited to 'docshell/base')
-rw-r--r-- | docshell/base/nsDefaultURIFixup.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docshell/base/nsDefaultURIFixup.cpp b/docshell/base/nsDefaultURIFixup.cpp index 79c918523..8e5db2154 100644 --- a/docshell/base/nsDefaultURIFixup.cpp +++ b/docshell/base/nsDefaultURIFixup.cpp @@ -160,7 +160,10 @@ nsDefaultURIFixup::GetFixupURIInfo(const nsACString& aStringURI, if (scheme.LowerCaseEqualsLiteral("view-source")) { nsCOMPtr<nsIURIFixupInfo> uriInfo; - uint32_t newFixupFlags = aFixupFlags & ~FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP; + // We disable keyword lookup and alternate URIs so that small typos don't + // cause us to look at very different domains + uint32_t newFixupFlags = aFixupFlags & ~FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP + & ~FIXUP_FLAGS_MAKE_ALTERNATE_URI; rv = GetFixupURIInfo(Substring(uriString, sizeof("view-source:") - 1, |