зеркало из https://github.com/mozilla/gecko-dev.git
bug 852044 - don't fire sync events from DocAccessible::ProcessLoad() r=surkov
This commit is contained in:
Родитель
06fdf779a6
Коммит
370ddb03b5
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче