Closed Bug 1957314 Opened 1 year ago Closed 11 months ago

Enable native UI Automation on Nightly

Categories

(Core :: Disability Access APIs, enhancement)

Desktop
Windows
enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e3c4b8db67cc enable native UIA on Nightly. r=morgan

Backed out for causing crashes on std::_Atomic_integral<unsigned int,4>::fetch_add.
This has affected multiple windows jobs.

Flags: needinfo?(jteh)

Some tests (e.g. Marionette and WPT) can start the accessibility service in a content process without starting it in the parent process.
When this happens, the content process will still send the accessibility tree, events, etc. to the parent process via IPDL, and the parent process will create the RemoteAccessible tree.
However, the accessibility service still isn't running in the parent process unless a client instantiates it.
Previously, nsAccUtils::GetLiveRegionSetting assumed the accessibility service was running without checking.
UIA calls this method when firing certain events, so this was causing a crash.
To fix this, just null check it.
In future, we may wish to consider not firing events if the service isn't running or some other broader solution for this situation, but I don't think it's worth investing in that now, especially as this is only relevant to tests.

I also added an assertion for the presence of the service in nsAccUtils::SetLiveContainerAttributes.
Because this is only used for setting attributes, callers already check that the service exists before calling this, but an assertion should help enforce this.

Attachment #9475630 - Attachment description: Bug 1957314: enable native UIA on Nightly. → Bug 1957314 part 2: enable native UIA on Nightly.
Flags: needinfo?(jteh)
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b55e50bc199 part 1: nsAccUtils::GetLiveRegionSetting: Don't assume the accessibility service is running. r=morgan https://hg.mozilla.org/integration/autoland/rev/db4236ad6e02 part 2: enable native UIA on Nightly. r=morgan
Depends on: 1959892
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2be1662a8bff part 1: nsAccUtils::GetLiveRegionSetting: Don't assume the accessibility service is running. r=morgan https://hg.mozilla.org/integration/autoland/rev/e10738fac397 part 2: enable native UIA on Nightly. r=morgan
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Regressions: 1963520
QA Whiteboard: [qa-triage-done-c140/b139]
Regressions: 1963625
Regressions: 1965405
Regressions: 1967379
Regressions: 1969821
Regressions: 1972253
Regressions: 1972539
Flags: needinfo?(jteh)
No longer depends on: 1956973
Regressions: 2012252
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: