зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
3d79b045eb
Коммит
5bc58bee86
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче