bug 852044 - don't fire sync events from DocAccessible::ProcessLoad() r=surkov

This commit is contained in:
Trevor Saunders 2013-03-18 01:58:34 -04:00
Родитель 06fdf779a6
Коммит 370ddb03b5
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1515,7 +1515,7 @@ DocAccessible::ProcessLoad()
// Fire complete/load stopped if the load event type is given.
if (mLoadEventType) {
nsRefPtr<AccEvent> loadEvent = new AccEvent(mLoadEventType, this);
nsEventShell::FireEvent(loadEvent);
FireDelayedEvent(loadEvent);
mLoadEventType = 0;
}
@ -1523,7 +1523,7 @@ DocAccessible::ProcessLoad()
// Fire busy state change event.
nsRefPtr<AccEvent> stateEvent =
new AccStateChangeEvent(this, states::BUSY, false);
nsEventShell::FireEvent(stateEvent);
FireDelayedEvent(stateEvent);
}
void

Просмотреть файл

@ -20,7 +20,7 @@
if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(13, 14);
} else if (navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(18);
SimpleTest.expectAssertions(2);
} else if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 14);
}

Просмотреть файл

@ -37,8 +37,8 @@
function loadTab(aURL)
{
this.eventSeq = [
new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, currentTabDocument),
new invokerChecker(EVENT_SCROLLING_START, getAnchorJumpInTabDocument)
new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, currentTabDocument),
new asyncInvokerChecker(EVENT_SCROLLING_START, getAnchorJumpInTabDocument)
];
this.invoke = function loadTab_invoke()