mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-01 10:39:26 +00:00
Don't allow alternate URI changes inside view-source URI fixup.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user