mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
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:
parent
6d07249c42
commit
4e5e02fcb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user