Closed Bug 2001780 Opened 9 months ago Closed 9 months ago

Perma [tier 2] browser/components/preferences/tests/browser_privacypane_3.js | Interactive elements must be labeled: id: input, tagName: select, className: -

Categories

(Testing :: General, defect, P5)

defect

Tracking

(firefox-esr140 unaffected, firefox145 unaffected, firefox146 unaffected, firefox147 affected)

RESOLVED DUPLICATE of bug 1999685
Tracking Status
firefox-esr140 --- unaffected
firefox145 --- unaffected
firefox146 --- unaffected
firefox147 --- affected

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [collect_confirm_failure])

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


[task 2025-11-22T03:31:49.118+00:00] 03:31:49     INFO - TEST-PASS | browser/components/preferences/tests/browser_privacypane_3.js | history mode is expected to remain remember - 
[task 2025-11-22T03:31:49.119+00:00] 03:31:49     INFO - Buffered messages finished
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_privacypane_3.js | Interactive elements must be labeled: id: input, tagName: select, className:  - 
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - Stack trace:
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/browser-test.js:test_ok:1759
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:a11yFail:798
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertLabelled:1013
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:1221
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:1185
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:handleEvent:1304
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/EventUtils.js:synthesizeMouseAtPoint:800
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/EventUtils.js:synthesizeMouse:672
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/EventUtils.js:synthesizeMouseAtCenter:844
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochitests/content/browser/browser/components/preferences/tests/head.js:selectHistoryMode:667
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochitests/content/browser/browser/components/preferences/tests/privacypane_tests_perwindow.js:test_custom_retention_fn:352
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochitests/content/browser/browser/components/preferences/tests/privacypane_tests_perwindow.js:runTestOnPrivacyPrefPane:16
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/browser-test.js:handleTask:1279
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1368
[task 2025-11-22T03:31:49.121+00:00] 03:31:49     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1515
[task 2025-11-22T03:31:49.122+00:00] 03:31:49     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1261
[task 2025-11-22T03:31:49.122+00:00] 03:31:49     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-11-22T03:31:49.122+00:00] 03:31:49     INFO - GECKO(18616) | console.error: (new Error("Unable to retrieve the translation models.", "resource://gre/actors/TranslationsParent.sys.mjs", 2424))
[task 2025-11-22T03:31:49.123+00:00] 03:31:49     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 163}]
[task 2025-11-22T03:31:49.123+00:00] 03:31:49     INFO - TEST-PASS | browser/components/preferences/tests/browser_privacypane_3.js | the control to change should exist - 

:tmarble, since you are the author of the regressor, bug 1995583, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(tmarble)

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

Flags: needinfo?(tmarble)
Depends on: 2002040

I wonder if this is really a regression from bug 1971438, which changed test_custom_retention. Does this mean that the new dropdown here with the config-based prefs is not adequately labeled for a11y?

Flags: needinfo?(emz)

So the history select should have an aria-label="History" in this case. The quick fix would be to add it to these strings https://searchfox.org/firefox-main/rev/1c9d86edc5d91b67ba8c858a053de40e1b98dc95/browser/locales/en-US/browser/preferences/preferences.ftl#1314-1321

A potentially better fix would be to update the config to support labelling a control by its group label, so we'd have something like:

{
  id: "rememberHistory",
  control: "moz-select",
  l10nId: "history-remember-description2", // This sets the description
  labelledByGroup: true, // This does (pseudo-code) `control.inputEl.ariaLabelledByElements = [group.fieldset.legendEl]`
  ...
}

I think this is a dupe of Bug 1999685. I have a patch attached there which should resolve it.

Status: NEW → RESOLVED
Closed: 9 months ago
Duplicate of bug: 1999685
Flags: needinfo?(emz)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.