Backed out changeset db31cf17952c (bug 1819799) for causing ba failures at browser_caching_table.js

This commit is contained in:
Cristina Horotan 2023-03-07 09:25:35 +02:00
parent ca63b09954
commit 72f5765338
3 changed files with 6 additions and 14 deletions

View File

@ -414,10 +414,6 @@ mozilla::ipc::IPCResult DocAccessibleParent::RecvStateChangeEvent(
if (StaticPrefs::accessibility_cache_enabled_AtStartup()) {
target->UpdateStateCache(aState, aEnabled);
if (nsCOMPtr<nsIObserverService> obsService =
services::GetObserverService()) {
obsService->NotifyObservers(nullptr, NS_ACCESSIBLE_CACHE_TOPIC, nullptr);
}
}
ProxyStateChangeEvent(target, aState, aEnabled);

View File

@ -126,17 +126,14 @@ addAccessibleTask(
"Correct checked value"
);
// Changing from checked to mixed fires two events. Make sure we wait until
// the second so we're asserting based on the latest state.
evt = waitForMacEvent("AXValueChanged", (iface, data) => {
return (
iface.getAttributeValue("AXDOMIdentifier") == "checkbox" &&
iface.getAttributeValue("AXValue") == 2
);
});
evt = waitForMacEvent("AXValueChanged", "checkbox");
checkbox.performAction("AXPress");
await evt;
is(checkbox.getAttributeValue("AXValue"), 2, "Correct checked value");
await untilCacheIs(
() => checkbox.getAttributeValue("AXValue"),
2,
"Correct checked value"
);
}
);

View File

@ -851,7 +851,6 @@ function untilCacheCondition(conditionFunc, argsFunc) {
},
timeout() {
ok(false, "Timeout while waiting for cache update");
Services.obs.removeObserver(this, "accessible-cache");
args = argsFunc();
resolve(args);