Fix #149133 - crash when scrolling a tab created by 'Open Link in New Tab' due to not having a valid focused widget when the page finishes loading. r=pinkerton, sr=beard

This commit is contained in:
sdagley%netscape.com 2002-06-06 04:08:19 +00:00
parent 91e3d50d91
commit 0c103987d8

View File

@ -146,6 +146,10 @@ static nsEventStatus
HandleScrollEvent ( EventMouseWheelAxis inAxis, PRBool inByLine, PRInt32 inDelta,
Point inMouseLoc, nsIWidget* inWidget )
{
NS_ASSERTION(inWidget, "HandleScrollEvent doesn't work with a null widget");
if (!inWidget)
return nsEventStatus_eIgnore;
nsMouseScrollEvent scrollEvent;
scrollEvent.scrollFlags =