зеркало из https://github.com/mozilla/gecko-dev.git
Temporary hack to avoid crashing.
This commit is contained in:
Родитель
477143c9cf
Коммит
7ae81ff69f
|
@ -2044,6 +2044,9 @@ GlobalWindowImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
//Bubbling stage
|
||||
if (NS_EVENT_FLAG_CAPTURE != aFlags && mChromeDocument) {
|
||||
// Bubble to a chrome document if it exists
|
||||
// XXX Need a way to know if an event should really bubble or not.
|
||||
// For now filter out load and unload, since they cause problems.
|
||||
if (aEvent->message != NS_PAGE_LOAD && aEvent->message != NS_PAGE_UNLOAD)
|
||||
mChromeDocument->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, NS_EVENT_FLAG_BUBBLE, aEventStatus);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче