mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
Removed call to add items to the GlobalHistory at the beginning of the load. This was causing them to be added twice. Now instead, they are added at when OnLoading is called from the DoContent. r=mscott a=jar
This commit is contained in:
parent
619ad7581a
commit
84d90bd475
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user