mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Backed out changeset db31cf17952c (bug 1819799) for causing ba failures at browser_caching_table.js
This commit is contained in:
parent
ca63b09954
commit
72f5765338
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user