Bug 244776. Don't fire doc load events for clicks on links to named anchors within same page. r=pkw, sr=darin

This commit is contained in:
aaronleventhal%moonset.net 2004-06-01 19:42:26 +00:00
parent 32f8edf96b
commit c73b8a33c0

View File

@ -747,6 +747,12 @@ NS_IMETHODIMP nsDocAccessible::OnProgressChange(nsIWebProgress *aWebProgress,
NS_IMETHODIMP nsDocAccessible::OnLocationChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, nsIURI *location)
{
PRBool isLoadingDocument;
aWebProgress->GetIsLoadingDocument(&isLoadingDocument);
if (!isLoadingDocument) {
return NS_OK; // Staying on the same page, perhaps jumping to a named anchor
}
// Load has been verified, it will occur, about to commence
// We won't fire a "doc finished loading" event on this nsDocAccessible