mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 13:45:46 +00:00
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:
parent
91e3d50d91
commit
0c103987d8
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user