Bug 51211. Image load event caused havoc in chrome, stop the event from getting into chrome. r=vidur, a=hyatt.

This commit is contained in:
heikki%netscape.com 2000-10-05 21:40:13 +00:00
parent 6d07249c42
commit 4e5e02fcb1

View File

@ -486,9 +486,12 @@ NS_IMETHODIMP GlobalWindowImpl::HandleDOMEvent(nsIPresContext* aPresContext,
// Capturing stage
if ((NS_EVENT_FLAG_BUBBLE != aFlags) && mChromeEventHandler) {
// Check chrome document capture here.
mChromeEventHandler->HandleChromeEvent(aPresContext, aEvent, aDOMEvent,
NS_EVENT_FLAG_CAPTURE,
aEventStatus);
// XXX The chrome can not handle this, see bug 51211
if (aEvent->message != NS_IMAGE_LOAD) {
mChromeEventHandler->HandleChromeEvent(aPresContext, aEvent, aDOMEvent,
NS_EVENT_FLAG_CAPTURE,
aEventStatus);
}
}
// Local handling stage