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
parent d1354a38e0
commit a25e658ed5
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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()