diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index fc94cfe47195..f3983cea0f05 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -1303,13 +1303,6 @@ nsWebShell::DoLoadURL(nsIURI * aUri, if (!aUri) return NS_ERROR_NULL_POINTER; - // This should probably get saved in mHistoryService or something... - // Ugh. It sucks that we have to hack webshell like this. Forgive me, Father. - PRInt32 shouldAdd = PR_FALSE; - ShouldAddToGlobalHistory(aUri, &shouldAdd); - if(shouldAdd) - AddToGlobalHistory(aUri); - nsXPIDLCString urlSpec; nsresult rv = NS_OK; rv = aUri->GetSpec(getter_Copies(urlSpec)); diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index fc94cfe47195..f3983cea0f05 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -1303,13 +1303,6 @@ nsWebShell::DoLoadURL(nsIURI * aUri, if (!aUri) return NS_ERROR_NULL_POINTER; - // This should probably get saved in mHistoryService or something... - // Ugh. It sucks that we have to hack webshell like this. Forgive me, Father. - PRInt32 shouldAdd = PR_FALSE; - ShouldAddToGlobalHistory(aUri, &shouldAdd); - if(shouldAdd) - AddToGlobalHistory(aUri); - nsXPIDLCString urlSpec; nsresult rv = NS_OK; rv = aUri->GetSpec(getter_Copies(urlSpec));