mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fix 205161 - remove "www" from history entries.
This commit is contained in:
parent
2f70def121
commit
3acfbdcd18
@ -758,6 +758,10 @@ nsGlobalHistory::AddNewPageToDatabase(const char *aURL,
|
||||
if (uri)
|
||||
uri->GetHost(hostname);
|
||||
|
||||
// Strip www.
|
||||
if (Substring(hostname, 0, 4).Equals(NS_LITERAL_CSTRING("www.")))
|
||||
hostname.Cut(0, 4);
|
||||
|
||||
SetRowValue(row, kToken_HostnameColumn, hostname.get());
|
||||
|
||||
*aResult = row;
|
||||
|
Loading…
Reference in New Issue
Block a user