Closed Bug 1946102 Opened 1 month ago Closed 1 month ago

Perma [tier 2] devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js | Node is not accessible via accessibility API: id: , tagName: span, className: ruleview-expander theme-twisty -

Categories

(DevTools :: Inspector: Rules, defect, P5)

defect

Tracking

(firefox-esr128 unaffected, firefox135 unaffected, firefox136 unaffected, firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox135 --- unaffected
firefox136 --- unaffected
firefox137 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file)

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=493406446&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DcKK4My_TxGgTjI9pn9Qog/runs/0/artifacts/public/logs/live_backing.log


[task 2025-02-05T12:32:14.588Z] 12:32:14     INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js | margin computed list is closed - 
[task 2025-02-05T12:32:14.588Z] 12:32:14     INFO - Opening the computed list of margin property
[task 2025-02-05T12:32:14.589Z] 12:32:14     INFO - Buffered messages finished
[task 2025-02-05T12:32:14.590Z] 12:32:14     INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js | Node is not accessible via accessibility API: id: , tagName: span, className: ruleview-expander theme-twisty - 
[task 2025-02-05T12:32:14.591Z] 12:32:14     INFO - Stack trace:
[task 2025-02-05T12:32:14.591Z] 12:32:14     INFO - chrome://mochikit/content/browser-test.js:test_ok:1599
[task 2025-02-05T12:32:14.591Z] 12:32:14     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:a11yFail:756
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:1165
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:1141
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:handleEvent:1258
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js:testComputedList:34
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js:null:23
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-02-05T12:32:14.592Z] 12:32:14     INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_computed-lists_02.js | margin computed list is open - 

:xpresskaran98, since you are the author of the regressor, bug 1564329, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(xpresskaran98)

Set release status flags based on info from the regressing bug 1564329

Bug 1564329 only highlights an existing issue, as the clicked element isn't indeed accessible.
Before, the accessibility check wasn't done because at the time we were its click method, the element wasn't yet added to the page or at least wasn't laid out properly, and the accessibility check task was bailing out because the element had a 0×0 size https://searchfox.org/mozilla-release/rev/21df1ac521242be96e0c070aa713ccff03e1b2d3/testing/mochitest/tests/SimpleTest/AccessibilityUtils.js#1247-1256

const bounds =
  composedTarget.ownerGlobal?.windowUtils?.getBoundsWithoutFlushing(
    composedTarget
  );
if (bounds && (bounds.width == 0 || bounds.height == 0)) {
  // Some tests click hidden nodes. These clearly aren't testing the UI
  // for the node itself (and presumably there is a test somewhere else
  // that does). Therefore, we can't (and shouldn't) do a11y checks.
  return;
}

This changed because we added container: search-container / inline-size to #inspector-search, and for some reason, it must trigger a layout faster, which makes the a11y check actually reveal the issue.
Another test was skipped because of this element https://searchfox.org/mozilla-release/rev/21df1ac521242be96e0c070aa713ccff03e1b2d3/devtools/client/inspector/rules/test/browser_part1.toml#213

skip-if = ["a11y_checks"] # Bugs 1849028 and 1858041 clicked span.ruleview-expander.theme-twisty is inconsistently not accessible

and here it looks like we can add a fail-if since it perma fails

Flags: needinfo?(xpresskaran98)
Duplicate of this bug: 1946162

In Bug 1564329 we added a container property to the inspector search element
which seems to trigger an earlier layout than before. This caused some "new"
accessibility checks failures, as before, some elements would have a 0x0 size and
would be explicitely ignored by the a11y checks (https://searchfox.org/mozilla-release/rev/21df1ac521242be96e0c070aa713ccff03e1b2d3/devtools/client/inspector/rules/test/browser_part1.toml#213)

The short-hand toggle button that is clicked is indeed not accessible and the
test is expected to fail the a11y checks.
Turn skip-if annotation of browser_rules_edit-property-computed.js into fail-if
as the failure is now more consistent.

Another failure was found in browser_rules_editable-field-focus_01.js where
we click on the element rule selector to ensure it goes through and adds
a declaration. For this test, we can specifically disable the check as the
selector itself shouldn't be a button, we're just checking that the click is
going through it.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/66f855d4df5f [devtools] Add fail-if=a11y_checks for rules view tests. r=devtools-reviewers,bomsy,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: