mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
32f8edf96b
commit
c73b8a33c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user